]> granicus.if.org Git - php/commitdiff
fixed string comparison which brought up a gcc warning.
authorAbdul-Kareem Abo-Namous <abonamous@php.net>
Wed, 11 Dec 2002 14:18:40 +0000 (14:18 +0000)
committerAbdul-Kareem Abo-Namous <abonamous@php.net>
Wed, 11 Dec 2002 14:18:40 +0000 (14:18 +0000)
ext/oci8/oci8.c

index 9721704abe8420c5d7b525ae59fec6ce3b118182..7f76fa0ae1a59c19fd77d5efdecf674c2b70a920 100644 (file)
@@ -2179,7 +2179,7 @@ static oci_session *_oci_open_session(oci_server* server,char *username,char *pa
 
        #ifdef HAVE_OCI9
        //following chunk is Oracle 9i+ ONLY
-       if (charset[0] != "\0") {
+       if (*charset) {
                //get ub2 charset id based on charset
                //this is pretty secure, since if we don't have a valid character set name,
                //0 comes back and we can still use the 0 in all further statements -> OCI uses NLS_LANG