cvs: php-src /ext/pcntl pcntl.c
| From: | Arnaud Le Blanc | Date: | Fri, 12 Sep 2008 19:49:04 +0000 |
| Subject: | cvs: php-src /ext/pcntl pcntl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-53097@lists.php.net to get a copy of this message | ||
lbarnaud Fri Sep 12 19:49:04 2008 UTC
Modified files:
/php-src/ext/pcntl pcntl.c
Log:
initialize optional args
http://cvs.php.net/viewvc.cgi/php-src/ext/pcntl/pcntl.c?r1=1.66&r2=1.67&diff_format=u
Index: php-src/ext/pcntl/pcntl.c
diff -u php-src/ext/pcntl/pcntl.c:1.66 php-src/ext/pcntl/pcntl.c:1.67
--- php-src/ext/pcntl/pcntl.c:1.66 Tue Aug 5 15:12:10 2008
+++ php-src/ext/pcntl/pcntl.c Fri Sep 12 19:49:04 2008
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pcntl.c,v 1.66 2008/08/05 15:12:10 jani Exp $ */
+/* $Id: pcntl.c,v 1.67 2008/09/12 19:49:04 lbarnaud Exp $ */
#define PCNTL_DEBUG 0
@@ -602,7 +602,7 @@
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;