cvs: php4 /ext/standard string.c
| From: | Marcus B�rger | Date: | Thu, 24 Oct 2002 19:11:50 +0000 |
| Subject: | cvs: php4 /ext/standard string.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-15389@lists.php.net to get a copy of this message | ||
helly Thu Oct 24 15:11:50 2002 EDT
Modified files:
/php4/ext/standard string.c
Log:
fix compiler warning
Index: php4/ext/standard/string.c
diff -u php4/ext/standard/string.c:1.327 php4/ext/standard/string.c:1.328
--- php4/ext/standard/string.c:1.327 Tue Oct 22 14:27:56 2002
+++ php4/ext/standard/string.c Thu Oct 24 15:11:49 2002
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: string.c,v 1.327 2002/10/22 18:27:56 helly Exp $ */
+/* $Id: string.c,v 1.328 2002/10/24 19:11:49 helly Exp $ */
/* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
@@ -915,6 +915,7 @@
case 1:
tok = args[0];
break;
+ default:
case 2:
str = args[0];
tok = args[1];
@@ -1198,7 +1199,7 @@
PHP_FUNCTION(pathinfo)
{
zval *tmp;
- char *path, *ret;
+ char *path, *ret = NULL;
int path_len;
int opt = PHP_PATHINFO_ALL;
@@ -3182,6 +3183,7 @@
if (Z_TYPE_PP(args[1]) == IS_ARRAY) {
zend_hash_internal_pointer_reset(Z_ARRVAL_PP(args[1]));
+ i=0; /* not needed in this case: only kill a compiler warning */
} else {
i=1;
}