X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_encoding_api.c;h=89865a2bd543c437e4de80b24f1e3f29c17046bf;hb=ac3d2543d5be5cc11352451c4dcaca363569dc66;hp=08a41a87da82df75afcd9bcd823b406688621368;hpb=e37040ebf8a470c77c7ae3498ee582ca20db259c;p=m6w6%2Fext-http diff --git a/http_encoding_api.c b/http_encoding_api.c index 08a41a8..89865a2 100644 --- a/http_encoding_api.c +++ b/http_encoding_api.c @@ -235,7 +235,7 @@ static inline int http_inflate_rounds(z_stream *Z, int flush, char **buf, size_t phpstr_init_ex(&buffer, Z->avail_in, PHPSTR_INIT_PREALLOC); do { - if (phpstr_resize_ex(&buffer, buffer.size, 0, 1) == (size_t) -1) { + if (PHPSTR_NOMEM == phpstr_resize_ex(&buffer, buffer.size, 0, 1)) { status = Z_MEM_ERROR; } else { do {