tag 354310 + patch thanks On Sat, Feb 25, 2006 at 11:48:10AM +1100, Kevin Ryde wrote:
> The thing that made me go to gzerror was of course that it gives a > string description. Maybe gzclose could note that you can't get a > string for its error (assuming that's in fact the case). I've sent this patch upstream which hopefully clarifies this (it will appear in the next Debian version too): --- zlib-1.2.3/zlib.h.orig 2006-02-18 08:37:38.000000000 +0000 +++ zlib-1.2.3/zlib.h 2006-02-25 12:02:18.000000000 +0000 @@ -1230,7 +1230,8 @@ /* Flushes all pending output if necessary, closes the compressed file and deallocates all the (de)compression state. The return value is the zlib - error number (see function gzerror below). + error number (see function gzerror below). Note that even when an error + is returned the file will be closed so gzerror cannot be called. */ ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum)); -- "You grabbed my hand and we fell into it, like a daydream - or a fever."
signature.asc
Description: Digital signature