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

main/streams/streams.c

index 3016cc7f9064a4eea4a7489bcd5acecdcaf973c9..e0530cacd1e2a134dc1ca8f637d3e31727b7be39 100755 (executable)
@@ -1611,10 +1611,6 @@ PHPAPI size_t _php_stream_copy_to_mem_ex(php_stream *src, zend_uchar rettype, vo
        int min_room = CHUNK_SIZE / 4;
        php_stream_statbuf ssbuf;
 
-       if (buf) {
-               *buf = NULL;
-       }
-
        if (rettype != src->readbuf_type) {
                /* UTODO: Introduce sloppy buffer conversion */
                return 0;