cvs: php-src(PHP_4_3) /ext/zlib zlib_fopen_wrapper.c

From: Date: Thu, 24 Jul 2003 00:03:51 +0000
Subject: cvs: php-src(PHP_4_3) /ext/zlib zlib_fopen_wrapper.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-22754@lists.php.net to get a copy of this message
iliaa Wed Jul 23 20:03:51 2003 EDT Modified files: (Branch: PHP_4_3) /php-src/ext/zlib zlib_fopen_wrapper.c Log: MFH: zlib fix Index: php-src/ext/zlib/zlib_fopen_wrapper.c diff -u php-src/ext/zlib/zlib_fopen_wrapper.c:1.33.2.5 php-src/ext/zlib/zlib_fopen_wrapper.c:1.33.2.6 --- php-src/ext/zlib/zlib_fopen_wrapper.c:1.33.2.5 Tue Dec 31 11:35:49 2002 +++ php-src/ext/zlib/zlib_fopen_wrapper.c Wed Jul 23 20:03:51 2003 @@ -16,7 +16,7 @@ | Hartmut Holzgraefe <hartmut@six.de> | +----------------------------------------------------------------------+ */ -/* $Id: zlib_fopen_wrapper.c,v 1.33.2.5 2002/12/31 16:35:49 sebastian Exp $ */ +/* $Id: zlib_fopen_wrapper.c,v 1.33.2.6 2003/07/24 00:03:51 iliaa Exp $ */ #define IS_EXT_MODULE #define _GNU_SOURCE @@ -52,14 +52,12 @@ static int php_gziop_seek(php_stream *stream, off_t offset, int whence, off_t *newoffs TSRMLS_DC) { struct php_gz_stream_data_t *self = (struct php_gz_stream_data_t *)stream->abstract; - int ret; - + assert(self != NULL); - - ret = gzseek(self->gz_file, offset, whence); - *newoffs = gztell(self->gz_file); - - return ret < 0 ? -1 : 0; + + *newoffs = gzseek(self->gz_file, offset, whence); + + return *newoffs < 0 ? -1 : 0; } static int php_gziop_close(php_stream *stream, int close_handle TSRMLS_DC)

« previous php.cvs (#22754) next »