cvs: php-src /ext/standard string.c
| From: | Sara Golemon | Date: | Wed, 27 Aug 2003 00:43:54 +0000 |
| Subject: | cvs: php-src /ext/standard string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-23403@lists.php.net to get a copy of this message | ||
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();