summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-09-27 17:26:47 (GMT)
committerIlia Alshanetsky <iliaa@php.net>2007-09-27 17:26:47 (GMT)
commitf6d9901873156c560eb6da7dafbefc56c363b2bd (patch)
tree734a34eb3d75f814935797d008f40bf18213c524
parentd64b3989c52d671051a6f1aaef7b046d14041858 (diff)
downloadphp-f6d9901873156c560eb6da7dafbefc56c363b2bd.tar.gz
Fixed coverity issue #470 Unitialized integer value used inside
zend_ini_boolean_displayer_cb
-rw-r--r--Zend/zend_ini.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_ini.c b/Zend/zend_ini.c
index c80ff30..0126fe0 100644
--- a/Zend/zend_ini.c
+++ b/Zend/zend_ini.c
@@ -443,7 +443,7 @@ ZEND_INI_DISP(zend_ini_boolean_displayer_cb) /* {{{ */
value = 1;
} else if (tmp_value_len == 2 && strcasecmp(tmp_value, "on") == 0) {
value = 1;
- } else if (value) {
+ } else if (tmp_value) {
value = atoi(tmp_value);
} else {
value = 0;