From: Wez Furlong Date: Tue, 19 Nov 2002 21:11:03 +0000 (+0000) Subject: Be pedantic with the return value X-Git-Tag: php-4.3.0RC2~71 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5302361ececf2086890ea4a42bb1276205b07e98;p=php Be pedantic with the return value --- diff --git a/ext/zlib/zlib_fopen_wrapper.c b/ext/zlib/zlib_fopen_wrapper.c index 83674e2ec5..e0b383c1cd 100644 --- a/ext/zlib/zlib_fopen_wrapper.c +++ b/ext/zlib/zlib_fopen_wrapper.c @@ -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)