cvs: php-src /main/streams streams.c

From: Date: Sun, 10 Sep 2006 13:01:28 +0000
Subject: cvs: php-src /main/streams streams.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-40418@lists.php.net to get a copy of this message
tony2001 Sun Sep 10 13:01:28 2006 UTC Modified files: /php-src/main/streams streams.c Log: fix coverity issue #197 "I can't think of a reason to pass a NULL buf" (c) Wez http://cvs.php.net/viewvc.cgi/php-src/main/streams/streams.c?r1=1.131&r2=1.132&diff_format=u Index: php-src/main/streams/streams.c diff -u php-src/main/streams/streams.c:1.131 php-src/main/streams/streams.c:1.132 --- php-src/main/streams/streams.c:1.131 Sun Sep 3 16:33:02 2006 +++ php-src/main/streams/streams.c Sun Sep 10 13:01:28 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: streams.c,v 1.131 2006/09/03 16:33:02 iliaa Exp $ */ +/* $Id: streams.c,v 1.132 2006/09/10 13:01:28 tony2001 Exp $ */ #define _GNU_SOURCE #include "php.h" @@ -1611,10 +1611,6 @@ 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;

« previous php.cvs (#40418) next »