diff options
| author | Antony Dovgal <tony2001@php.net> | 2006-09-10 13:01:37 +0000 |
|---|---|---|
| committer | Antony Dovgal <tony2001@php.net> | 2006-09-10 13:01:37 +0000 |
| commit | 9fa594c2dd94bd051ae5a98f5a9d1c172c37cd71 (patch) | |
| tree | e1fbd2efc25f9a746a516509fc6e9e86fb48061e /main | |
| parent | 618e62325e1b7ac94c44d8d4ceecca4bacc63601 (diff) | |
| download | php-git-9fa594c2dd94bd051ae5a98f5a9d1c172c37cd71.tar.gz | |
fix coverity issue #197
"I can't think of a reason to pass a NULL buf" (c) Wez
Diffstat (limited to 'main')
| -rwxr-xr-x | main/streams/streams.c | 4 |
1 files changed, 0 insertions, 4 deletions
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; } |
