From 7161dcc35bc45bf10cf0e6ff6060e9e8c701baad Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Mon, 24 Nov 2008 19:16:51 +0000 Subject: [PATCH] Fixed some conditional jumps depending on uninitialised value --- ext/standard/basic_functions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index bcf75d114c..32d81f70d0 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -3657,6 +3657,7 @@ PHP_RINIT_FUNCTION(basic) /* {{{ */ memset(BG(strtok_table), 0, 256); BG(strtok_string) = NULL; BG(strtok_zval) = NULL; + BG(strtok_last) = NULL; BG(locale_string) = NULL; BG(array_walk_fci) = empty_fcall_info; BG(array_walk_fci_cache) = empty_fcall_info_cache; @@ -5986,7 +5987,7 @@ PHP_FUNCTION(parse_ini_file) zval **pp_filename; char *filename; int filename_len; - zend_bool process_sections; + zend_bool process_sections = 0; long scanner_mode = ZEND_INI_SCANNER_NORMAL; zend_file_handle fh; zend_ini_parser_cb_t ini_parser_cb; -- 2.40.0