X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_encoding_api.c;fp=http_encoding_api.c;h=89865a2bd543c437e4de80b24f1e3f29c17046bf;hp=08a41a87da82df75afcd9bcd823b406688621368;hb=650dad8564d53bd3fb6c9867fa81e0abf17f6f7b;hpb=4b8791e9f6d428df211275429051c465a2f3b12b 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 {