From: Sara Golemon Date: Wed, 27 Aug 2003 00:43:54 +0000 (+0000) Subject: Squelch warning "Variable may be used uninitialized." X-Git-Tag: RELEASE_0_7~447 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3560cd83c05a178ac76eb404784960b2f7069071;p=php 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. --- diff --git a/ext/standard/string.c b/ext/standard/string.c index ae1f71c364..26167f934c 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1849,7 +1849,7 @@ PHP_FUNCTION(substr_replace) zval **repl; char *result; int result_len; - int l; + int l = 0; int f; int argc = ZEND_NUM_ARGS();