From a042281726cdeb3048a815acf4f090780004e1cf Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Mon, 11 Jan 2021 19:53:09 +0000 Subject: [PATCH] Allowing to reserve 0 bytes in njs_chb_reserve() for consistency. --- src/njs_chb.c | 4 ---- 1 file changed, 4 deletions(-) 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)) { -- 2.47.3