]> granicus.if.org Git - php/commitdiff
- C vs. C++ fix
authorMarcus Boerger <helly@php.net>
Fri, 7 Oct 2005 07:37:37 +0000 (07:37 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 7 Oct 2005 07:37:37 +0000 (07:37 +0000)
# I do too much C++ and too much languages anyway, right now actively:
# C, C++, Java, PHP, Peral

main/streams/memory.c

index 0342c5b92395776dfb462830386f128473023511..af050665b15bdbe02c9341b47dc12475e0578c7c 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;