]> granicus.if.org Git - php/commitdiff
initialize optional args
authorArnaud Le Blanc <lbarnaud@php.net>
Fri, 12 Sep 2008 19:49:04 +0000 (19:49 +0000)
committerArnaud Le Blanc <lbarnaud@php.net>
Fri, 12 Sep 2008 19:49:04 +0000 (19:49 +0000)
ext/pcntl/pcntl.c

index 92452437f09c6b3e564356e2b323ee5de52cb648..6bc6241aa98c0ffdd4ed213ceffdc02a79a50e81 100755 (executable)
@@ -602,7 +602,7 @@ PHP_FUNCTION(pcntl_wstopsig)
    Executes specified program in current process space as defined by exec(2) */
 PHP_FUNCTION(pcntl_exec)
 {
-       zval *args, *envs;
+       zval *args = NULL, *envs = NULL;
        zval **element;
        HashTable *args_hash, *envs_hash;
        int argc = 0, argi = 0;