]> granicus.if.org Git - php/commitdiff
it's usually good idea to initialize variables
authorAntony Dovgal <tony2001@php.net>
Wed, 12 Jul 2006 12:38:49 +0000 (12:38 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 12 Jul 2006 12:38:49 +0000 (12:38 +0000)
especially if you rely on their values

ext/standard/streamsfuncs.c

index c2b07d6a2897183c271b68a2b3b2a0cd7f78208e..36306bb9d580ec2491d47337c2385842e193184b 100644 (file)
@@ -1172,7 +1172,7 @@ PHP_FUNCTION(stream_filter_remove)
 PHP_FUNCTION(stream_get_line)
 {
        char *str = NULL;
-       int str_len;
+       int str_len = 0;
        long max_length;
        zval *zstream;
        char *buf;