pollita Tue Aug 26 20:43:54 2003 EDT Modified files: /php-src/ext/standard string.c Log: Squelch warning "Variable may be used uninitialized." This would never occur anyway because of the logic of the function, but gcc isn't quite smart enough to realize this. Index: php-src/ext/standard/string.c diff -u php-src/ext/standard/string.c:1.395 php-src/ext/standard/string.c:1.396 --- php-src/ext/standard/string.c:1.395 Mon Aug 11 19:16:53 2003 +++ php-src/ext/standard/string.c Tue Aug 26 20:43:54 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.395 2003/08/11 23:16:53 iliaa Exp $ */ +/* $Id: string.c,v 1.396 2003/08/27 00:43:54 pollita Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -1849,7 +1849,7 @@ zval **repl; char *result; int result_len; - int l; + int l = 0; int f; int argc = ZEND_NUM_ARGS();
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php