]> granicus.if.org Git - php/commitdiff
fix crash in define()
authorAntony Dovgal <tony2001@php.net>
Tue, 1 Jul 2008 09:17:43 +0000 (09:17 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 1 Jul 2008 09:17:43 +0000 (09:17 +0000)
Zend/zend_builtin_functions.c

index 614cf3040bd6d6ddc005bef3945ab472e0f91db5..d4878b379ea66afcad6f7f3494a9ee755797645a 100644 (file)
@@ -460,7 +460,7 @@ ZEND_FUNCTION(define)
        zstr name;
        int name_len;
        zend_uchar name_type;
-       zval *val, *val_free;
+       zval *val, *val_free = NULL;
        zend_bool non_cs = 0;
        int case_sensitive = CONST_CS;
        zend_constant c;