]> granicus.if.org Git - php/commitdiff
Be pedantic with the return value
authorWez Furlong <wez@php.net>
Tue, 19 Nov 2002 21:11:03 +0000 (21:11 +0000)
committerWez Furlong <wez@php.net>
Tue, 19 Nov 2002 21:11:03 +0000 (21:11 +0000)
ext/zlib/zlib_fopen_wrapper.c

index 83674e2ec59df6d475b49cbf2e6b6eea97de0681..e0b383c1cd434e69af60d4c0d8c83e1ab28f378b 100644 (file)
@@ -59,7 +59,7 @@ static int php_gziop_seek(php_stream *stream, off_t offset, int whence, off_t *n
        ret = gzseek(self->gz_file, offset, whence);
        *newoffs = gztell(self->gz_file);
        
-       return ret;
+       return ret < 0 ? -1 : 0;
 }
 
 static int php_gziop_close(php_stream *stream, int close_handle TSRMLS_DC)