summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2003-08-27 00:43:54 +0000
committerSara Golemon <pollita@php.net>2003-08-27 00:43:54 +0000
commit3560cd83c05a178ac76eb404784960b2f7069071 (patch)
tree4e6d6c42e84659f1d8d54b7799c2b884f6d989c9
parentb04e0a8884716e8a9a22bd35458e2c3aee8fba2d (diff)
downloadphp-git-3560cd83c05a178ac76eb404784960b2f7069071.tar.gz
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.
-rw-r--r--ext/standard/string.c2
1 files changed, 1 insertions, 1 deletions
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();