From: Dmitry Volyntsev Date: Mon, 11 Jan 2021 19:53:09 +0000 (+0000) Subject: Allowing to reserve 0 bytes in njs_chb_reserve() for consistency. X-Git-Tag: 0.5.1~14 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=a042281726cdeb3048a815acf4f090780004e1cf;p=njs.git Allowing to reserve 0 bytes in njs_chb_reserve() for consistency. --- diff --git a/src/njs_chb.c b/src/njs_chb.c index 718cfe6d..6c54ec8f 100644 --- a/src/njs_chb.c +++ b/src/njs_chb.c @@ -34,10 +34,6 @@ njs_chb_reserve(njs_chb_t *chain, size_t size) { njs_chb_node_t *n; - if (njs_slow_path(size == 0)) { - return NULL; - } - n = chain->last; if (njs_fast_path(n != NULL && njs_chb_node_room(n) >= size)) {