]> granicus.if.org Git - php/commitdiff
initialize variable
authorAntony Dovgal <tony2001@php.net>
Thu, 10 Aug 2006 09:31:24 +0000 (09:31 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 10 Aug 2006 09:31:24 +0000 (09:31 +0000)
ext/standard/string.c

index 24c099a172842f9fd5c876e0722bc443d03dbefc..707d1f7dc518fc35f8fc2fe8052a2ad7ce869678 100644 (file)
@@ -2101,7 +2101,7 @@ PHP_FUNCTION(pathinfo)
 
        if (have_ext) {
                zstr ext;
-               int ext_len;
+               int ext_len = 0;
 
                if (path_type == IS_UNICODE) {
                        ext.u = u_memrchr32(ret.u, (UChar) 0x2e /*'.'*/, ret_len);