]> granicus.if.org Git - php/commitdiff
- MFH C vs. C++ fix
authorMarcus Boerger <helly@php.net>
Fri, 7 Oct 2005 07:40:54 +0000 (07:40 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 7 Oct 2005 07:40:54 +0000 (07:40 +0000)
main/memory_streams.c

index 3bf2ee5b08f87d31920ce90b1e30ca12cda26ad7..8533dab60c1db457b9a08fd2bd18c187b16fd5b3 100644 (file)
@@ -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;