]> granicus.if.org Git - php/commitdiff
Initializing optional argument description in assert()
authorLars Strojny <lstrojny@php.net>
Sun, 2 Sep 2012 06:01:18 +0000 (08:01 +0200)
committerLars Strojny <lstrojny@php.net>
Sun, 2 Sep 2012 06:01:18 +0000 (08:01 +0200)
ext/standard/assert.c

index 0ff3f9b7ef124f19b570c4740e6707bc9bd0770e..15fbefd51ce5b7bab22e766571072d633449b5cb 100644 (file)
@@ -143,7 +143,7 @@ PHP_FUNCTION(assert)
        zval **assertion;
        int val, description_len = 0;
        char *myeval = NULL;
-       char *compiled_string_description, *description;
+       char *compiled_string_description, *description = NULL;
 
        if (! ASSERTG(active)) {
                RETURN_TRUE;