]> granicus.if.org Git - php/commitdiff
Fixed some conditional jumps depending on uninitialised value
authorArnaud Le Blanc <lbarnaud@php.net>
Mon, 24 Nov 2008 19:16:51 +0000 (19:16 +0000)
committerArnaud Le Blanc <lbarnaud@php.net>
Mon, 24 Nov 2008 19:16:51 +0000 (19:16 +0000)
ext/standard/basic_functions.c

index bcf75d114ce3fd9f8343e9f6ce2c203e10fb9f36..32d81f70d0e72c43d09a2b4392f224da4733fce2 100644 (file)
@@ -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;