tony2001 Sun Sep 10 13:01:38 2006 UTC Modified files: (Branch: PHP_5_2) /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.82.2.6.2.5&r2=1.82.2.6.2.6&diff_format=u Index: php-src/main/streams/streams.c diff -u php-src/main/streams/streams.c:1.82.2.6.2.5 php-src/main/streams/streams.c:1.82.2.6.2.6 --- php-src/main/streams/streams.c:1.82.2.6.2.5 Sun Sep 3 16:32:27 2006 +++ php-src/main/streams/streams.c Sun Sep 10 13:01:37 2006 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: streams.c,v 1.82.2.6.2.5 2006/09/03 16:32:27 iliaa Exp $ */ +/* $Id: streams.c,v 1.82.2.6.2.6 2006/09/10 13:01:37 tony2001 Exp $ */ #define _GNU_SOURCE #include "php.h" @@ -1198,10 +1198,6 @@ int min_room = CHUNK_SIZE / 4; php_stream_statbuf ssbuf; - if (buf) { - *buf = NULL; - } - if (maxlen == 0) { return 0; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php