diff options
| author | Scott MacVicar <scottmac@php.net> | 2008-07-07 21:50:56 +0000 |
|---|---|---|
| committer | Scott MacVicar <scottmac@php.net> | 2008-07-07 21:50:56 +0000 |
| commit | 3bab7c18ac205863af3df740144be23c18cf7a72 (patch) | |
| tree | 48f85e4ce7e98e3e411aa1341ad1aa96b9e0f777 /Zend/zend_ini.c | |
| parent | 43e7784b0a11ad3cbe169cca494cdee98f65c84e (diff) | |
| download | php-git-3bab7c18ac205863af3df740144be23c18cf7a72.tar.gz | |
Tweak last commit, should always return NULL when an entry doesn't exist.
Diffstat (limited to 'Zend/zend_ini.c')
| -rw-r--r-- | Zend/zend_ini.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c index 0e82a20b71..5979e67fb1 100644 --- a/Zend/zend_ini.c +++ b/Zend/zend_ini.c @@ -382,12 +382,12 @@ ZEND_API char *zend_ini_string_ex(char *name, uint name_length, int orig, zend_b } else { return ini_entry->value; } - } else if (exists) { - *exists = 0; + } else { + if (exists) { + *exists = 0; + } return NULL; } - - return ""; } /* }}} */ |
