]> granicus.if.org Git - php/commitdiff
Removing a unused local variable.
authorFrank M. Kromann <fmk@php.net>
Fri, 12 Apr 2002 16:25:31 +0000 (16:25 +0000)
committerFrank M. Kromann <fmk@php.net>
Fri, 12 Apr 2002 16:25:31 +0000 (16:25 +0000)
Setting the size before returning the value in readgzfile

ext/zlib/zlib.c

index 7031efa23be548da40352621d38205fb975c792a..515d7f1a1d390ffb20d366bab5edf42756e2c9a4 100644 (file)
@@ -154,7 +154,7 @@ static PHP_INI_MH(OnUpdate_zlib_output_compression)
 /* {{{ OnUpdate_zlib_output_compression_level */
 static PHP_INI_MH(OnUpdate_zlib_output_compression_level)
 {
-       char *ini_value;
+//     char *ini_value;
 
        OnUpdateInt(entry, new_value, new_value_length, mh_arg1, mh_arg2, mh_arg3, stage TSRMLS_CC);
 
@@ -386,7 +386,7 @@ PHP_FUNCTION(readgzfile)
        if (!stream) {
                RETURN_FALSE;
        }
-       php_stream_passthru(stream);
+       size = php_stream_passthru(stream);
        php_stream_close(stream);
        RETURN_LONG(size);
 }