From 5302361ececf2086890ea4a42bb1276205b07e98 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Tue, 19 Nov 2002 21:11:03 +0000 Subject: [PATCH] Be pedantic with the return value --- ext/zlib/zlib_fopen_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.50.1