From a922385850f6d790d24e1db2b0ca025c20b9c2b7 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 5 Jan 2018 12:13:17 +1100 Subject: [PATCH] mem.c failed to compile if ISC_MEM_CHECKOVERRUN=0 --- lib/isc/mem.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/isc/mem.c b/lib/isc/mem.c index c0e1c5e264..b2898c6365 100644 --- a/lib/isc/mem.c +++ b/lib/isc/mem.c @@ -774,8 +774,9 @@ mem_get(isc__mem_t *ctx, size_t size) { if (ISC_UNLIKELY((ctx->flags & ISC_MEMFLAG_FILL) != 0)) { if (ISC_LIKELY(ret != NULL)) memset(ret, 0xbe, size); /* Mnemonic for "beef". */ - } else { + } #if ISC_MEM_CHECKOVERRUN + else { if (ISC_LIKELY(ret != NULL)) ret[size-1] = 0xbe; }