]> granicus.if.org Git - php/commitdiff
Fixed #45307 (define() crashes because of uninitialized variable)
authorDmitry Stogov <dmitry@php.net>
Thu, 19 Jun 2008 11:27:41 +0000 (11:27 +0000)
committerDmitry Stogov <dmitry@php.net>
Thu, 19 Jun 2008 11:27:41 +0000 (11:27 +0000)
Zend/zend_builtin_functions.c

index d074cec05f96145361842c4270f0ad2135a3d735..046f7b09906fec4b7c9bf09c4a21c1319ba2a928 100644 (file)
@@ -472,7 +472,8 @@ ZEND_FUNCTION(define)
 {
        char *name;
        int name_len;
-       zval *val, *val_free;
+       zval *val;
+       zval *val_free = NULL;
        zend_bool non_cs = 0;
        int case_sensitive = CONST_CS;
        zend_constant c;