diff options
author | Hartmut Holzgraefe <hholzgra@php.net> | 2002-10-21 19:08:18 +0000 |
---|---|---|
committer | Hartmut Holzgraefe <hholzgra@php.net> | 2002-10-21 19:08:18 +0000 |
commit | 30ed5a5483ff2276f56c7292fce62b66f5189687 (patch) | |
tree | f5aa5dddd3c985c933d0213fdfa473fc40f51e39 /ext/standard/php_fopen_wrapper.c | |
parent | 8841dfc9955d81f854fd0bbc61c01c060ad165bf (diff) | |
download | php-git-30ed5a5483ff2276f56c7292fce62b66f5189687.tar.gz |
killed some warnings identified by sebastian
Diffstat (limited to 'ext/standard/php_fopen_wrapper.c')
-rw-r--r-- | ext/standard/php_fopen_wrapper.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/php_fopen_wrapper.c b/ext/standard/php_fopen_wrapper.c index cfaad71e0f..50d5e50035 100644 --- a/ext/standard/php_fopen_wrapper.c +++ b/ext/standard/php_fopen_wrapper.c @@ -73,7 +73,7 @@ static size_t php_stream_input_write(php_stream *stream, const char *buf, size_t static size_t php_stream_input_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) { - int read_bytes; + size_t read_bytes = 0; if(!stream->eof) { if(SG(request_info).post_data) { /* data has already been read by a post handler */ read_bytes = SG(request_info).post_data_length - stream->position; @@ -85,16 +85,16 @@ static size_t php_stream_input_read(php_stream *stream, char *buf, size_t count if(read_bytes) { memcpy(buf, SG(request_info).post_data + stream->position, read_bytes); } - return read_bytes; } else { read_bytes = sapi_module.read_post(buf, count TSRMLS_CC); if(read_bytes <= 0){ stream->eof = 1; read_bytes = 0; } - return read_bytes; } } + + return read_bytes; } static int php_stream_input_close(php_stream *stream, int close_handle TSRMLS_DC) |