From: Antony Dovgal Date: Sun, 10 Sep 2006 13:01:28 +0000 (+0000) Subject: fix coverity issue #197 X-Git-Tag: RELEASE_1_0_0RC1~1716 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d13d4525238f32db9105a83caab3a77e462c106d;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 3016cc7f90..e0530cacd1 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -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;