]> granicus.if.org Git - php/commitdiff
Missing variable init
authorMarcus Boerger <helly@php.net>
Wed, 2 Oct 2002 13:18:01 +0000 (13:18 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 2 Oct 2002 13:18:01 +0000 (13:18 +0000)
main/streams.c

index b578ac89d1f18c8f44927c326dee22246a967c97..262a78418a7bfe5a771d347183a0bef23e480826 100755 (executable)
@@ -615,7 +615,7 @@ PHPAPI int _php_stream_stat(php_stream *stream, php_stream_statbuf *ssb TSRMLS_D
 
 PHPAPI char *_php_stream_gets(php_stream *stream, char *buf, size_t maxlen TSRMLS_DC)
 {
-       char *cr, *lf, *eol;
+       char *cr, *lf, *eol = NULL;
        size_t toread = 0, didread = 0, justread = 0, avail = 0;
        char *readptr;