notmuch/util
Olivier Taïbi b4f593e0e6 util: after gzgets(), Z_STREAM_END means EOF, not error
Context: I am compiling notmuch on OpenBSD which has a rather old zlib
1.2.3.  It seems that the behaviour of gzgets() changed slightly between
this version and more recent versions, but the manual does not reflect
that change.  Note that zlib's manual:
- does not specify which error code (Z_OK or Z_STREAM_END) is set when
  EOF is reached,
- does not indicate the meaning of Z_STREAM_END after gzgets(), but
  based on its meaning as a possible return value of inflate(), I would
  guess that it means EOF.

amended by db: tidy commit message
2020-04-16 07:55:23 -03:00
..
crypto.c util/crypto: _n_m_crypto_potential_payload returns whether part is the payload 2019-09-01 08:38:11 -03:00
crypto.h util/crypto: _n_m_crypto_potential_payload returns whether part is the payload 2019-09-01 08:38:11 -03:00
error_util.c cppcheck: call va_end in _internal_error 2017-08-30 07:12:13 -03:00
error_util.h util: run uncrustify 2019-06-14 07:41:27 -03:00
gmime-extra.c Merge branch 'release' 2019-10-13 09:24:48 -03:00
gmime-extra.h util: run uncrustify 2019-06-14 07:41:27 -03:00
hex-escape.c util: run uncrustify 2019-06-14 07:41:27 -03:00
hex-escape.h util: run uncrustify 2019-06-14 07:41:27 -03:00
Makefile xutil.c: remove duplicate copies, create new library libutil.a to contain xutil. 2011-10-30 23:09:49 -03:00
Makefile.local repair: set up codebase for repair functionality 2019-09-01 08:20:25 -03:00
repair.c legacy-display: drop tests that try to match headers in a Legacy Display part 2020-01-08 21:12:12 -04:00
repair.h util/repair: identify and repair "Mixed Up" mangled messages 2019-09-15 19:06:31 -04:00
string-util.c util: run uncrustify 2019-06-14 07:41:27 -03:00
string-util.h util: run uncrustify 2019-06-14 07:41:27 -03:00
talloc-extra.c util: add talloc-extra.[ch] 2012-12-30 21:12:11 -04:00
talloc-extra.h util: make remaining headers includable from C++ 2019-03-11 22:26:50 -03:00
unicode-util.c util: run uncrustify 2019-06-14 07:41:27 -03:00
unicode-util.h util: add unicode_word_utf8 2019-05-25 06:51:12 -03:00
util.c util: run uncrustify 2019-06-14 07:41:27 -03:00
util.h fix typos 2018-01-04 20:35:58 -04:00
xutil.c util: run uncrustify 2019-06-14 07:41:27 -03:00
xutil.h util: make remaining headers includable from C++ 2019-03-11 22:26:50 -03:00
zlib-extra.c util: after gzgets(), Z_STREAM_END means EOF, not error 2020-04-16 07:55:23 -03:00
zlib-extra.h don't pass NULL as second parameter to gzerror 2020-04-13 17:13:55 -03:00