diff options
-rw-r--r-- | main/memory_streams.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/memory_streams.c b/main/memory_streams.c index 3bf2ee5b08..8533dab60c 100644 --- a/main/memory_streams.c +++ b/main/memory_streams.c @@ -308,12 +308,13 @@ static size_t php_stream_temp_write(php_stream *stream, const char *buf, size_t static size_t php_stream_temp_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) { php_stream_temp_data *ts; + size_t got; assert(stream != NULL); ts = stream->abstract; assert(ts != NULL); - size_t got = php_stream_read(ts->innerstream, buf, count); + got = php_stream_read(ts->innerstream, buf, count); if (!got) { stream->eof |= ts->innerstream->eof; |