]> granicus.if.org Git - php/commitdiff
fix coverity issue #197
authorAntony Dovgal <tony2001@php.net>
Sun, 10 Sep 2006 13:01:37 +0000 (13:01 +0000)
committerAntony Dovgal <tony2001@php.net>
Sun, 10 Sep 2006 13:01:37 +0000 (13:01 +0000)
"I can't think of a reason to pass a NULL buf" (c) Wez

main/streams/streams.c

index 984eac9f0af9ff0e663b5255f1999501453c1a95..70f4c46daf20a4346ffb5226c1528f5148157c57 100755 (executable)
@@ -1198,10 +1198,6 @@ PHPAPI size_t _php_stream_copy_to_mem(php_stream *src, char **buf, size_t maxlen
        int min_room = CHUNK_SIZE / 4;
        php_stream_statbuf ssbuf;
 
-       if (buf) { 
-               *buf = NULL;
-       }
-
        if (maxlen == 0) { 
                return 0;
        }