]> granicus.if.org Git - php/commitdiff
Squelch warning "Variable may be used uninitialized."
authorSara Golemon <pollita@php.net>
Wed, 27 Aug 2003 00:43:54 +0000 (00:43 +0000)
committerSara Golemon <pollita@php.net>
Wed, 27 Aug 2003 00:43:54 +0000 (00:43 +0000)
This would never occur anyway because of the logic of the function,
but gcc isn't quite smart enough to realize this.

ext/standard/string.c

index ae1f71c36457fa2d1feecdabe45476d465fee9d2..26167f934c0a617384ffd6cd087e28b05f88d8c8 100644 (file)
@@ -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();