iliaa Sun Feb 6 17:58:47 2005 EDT Modified files: /php-src/ext/standard exec.c Log: Fixed possible un-initialized var on error. http://cvs.php.net/diff.php/php-src/ext/standard/exec.c?r1=1.111&r2=1.112&ty=u Index: php-src/ext/standard/exec.c diff -u php-src/ext/standard/exec.c:1.111 php-src/ext/standard/exec.c:1.112 --- php-src/ext/standard/exec.c:1.111 Mon Jul 12 14:49:47 2004 +++ php-src/ext/standard/exec.c Sun Feb 6 17:58:46 2005 @@ -16,7 +16,7 @@ | Ilia Alshanetsky <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: exec.c,v 1.111 2004/07/12 18:49:47 iliaa Exp $ */ +/* $Id: exec.c,v 1.112 2005/02/06 22:58:46 iliaa Exp $ */ #include <stdio.h> #include "php.h" @@ -66,7 +66,7 @@ php_stream *stream; size_t buflen, bufl = 0; #if PHP_SIGCHILD - void (*sig_handler)(); + void (*sig_handler)() = NULL; #endif if (PG(safe_mode)) { @@ -177,7 +177,9 @@ done: #if PHP_SIGCHILD - signal (SIGCHLD, sig_handler); + if (sig_handler) { + signal(SIGCHLD, sig_handler); + } #endif if (d) { efree(d);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php