]> granicus.if.org Git - php/commitdiff
Another missing variable init
authorMarcus Boerger <helly@php.net>
Wed, 2 Oct 2002 13:25:38 +0000 (13:25 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 2 Oct 2002 13:25:38 +0000 (13:25 +0000)
#Wez shouldn't "stream->filterhead->fops->flush()" affect return value also?

main/streams.c

index 262a78418a7bfe5a771d347183a0bef23e480826..490d593a2f605a0340ee362bea5a9ba2c1e5f751 100755 (executable)
@@ -687,7 +687,7 @@ PHPAPI char *_php_stream_gets(php_stream *stream, char *buf, size_t maxlen TSRML
 
 PHPAPI int _php_stream_flush(php_stream *stream, int closing TSRMLS_DC)
 {
-       int ret;
+       int ret = 0;
        
        if (stream->filterhead)
                stream->filterhead->fops->flush(stream, stream->filterhead, closing TSRMLS_CC);