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;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to