tony2001                Wed Jul 12 12:38:49 2006 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/ext/standard       streamsfuncs.c 
  Log:
  it's usually good idea to initialize variables
  especially if you rely on their values
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/streamsfuncs.c?r1=1.58.2.6.2.2&r2=1.58.2.6.2.3&diff_format=u
Index: php-src/ext/standard/streamsfuncs.c
diff -u php-src/ext/standard/streamsfuncs.c:1.58.2.6.2.2 
php-src/ext/standard/streamsfuncs.c:1.58.2.6.2.3
--- php-src/ext/standard/streamsfuncs.c:1.58.2.6.2.2    Mon Jun 26 18:48:56 2006
+++ php-src/ext/standard/streamsfuncs.c Wed Jul 12 12:38:49 2006
@@ -17,7 +17,7 @@
   +----------------------------------------------------------------------+
 */
 
-/* $Id: streamsfuncs.c,v 1.58.2.6.2.2 2006/06/26 18:48:56 bjori Exp $ */
+/* $Id: streamsfuncs.c,v 1.58.2.6.2.3 2006/07/12 12:38:49 tony2001 Exp $ */
 
 #include "php.h"
 #include "php_globals.h"
@@ -1172,7 +1172,7 @@
 PHP_FUNCTION(stream_get_line)
 {
        char *str = NULL;
-       int str_len;
+       int str_len = 0;
        long max_length;
        zval *zstream;
        char *buf;



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to