From: Antony Dovgal Date: Sun, 10 Sep 2006 13:01:37 +0000 (+0000) Subject: fix coverity issue #197 X-Git-Tag: php-5.2.0RC4~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9fa594c2dd94bd051ae5a98f5a9d1c172c37cd71;p=php fix coverity issue #197 "I can't think of a reason to pass a NULL buf" (c) Wez --- diff --git a/main/streams/streams.c b/main/streams/streams.c index 984eac9f0a..70f4c46daf 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -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; }