From: Abdul-Kareem Abo-Namous Date: Wed, 11 Dec 2002 14:18:40 +0000 (+0000) Subject: fixed string comparison which brought up a gcc warning. X-Git-Tag: RELEASE_1_0b3~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=089f1b5771adbd5a6b534f283296838424e2e8cb;p=php fixed string comparison which brought up a gcc warning. --- diff --git a/ext/oci8/oci8.c b/ext/oci8/oci8.c index 9721704abe..7f76fa0ae1 100644 --- a/ext/oci8/oci8.c +++ b/ext/oci8/oci8.c @@ -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