diff options
| author | Abdul-Kareem Abo-Namous <abonamous@php.net> | 2002-12-11 14:18:40 +0000 |
|---|---|---|
| committer | Abdul-Kareem Abo-Namous <abonamous@php.net> | 2002-12-11 14:18:40 +0000 |
| commit | 089f1b5771adbd5a6b534f283296838424e2e8cb (patch) | |
| tree | 03ab441089e946530fcb34649f8abc9f621e221d /ext/oci8 | |
| parent | e0c983a013bc508452b4120e64fb64c26fb89ffe (diff) | |
| download | php-git-089f1b5771adbd5a6b534f283296838424e2e8cb.tar.gz | |
fixed string comparison which brought up a gcc warning.
Diffstat (limited to 'ext/oci8')
| -rw-r--r-- | ext/oci8/oci8.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
