]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
mem.c failed to compile if ISC_MEM_CHECKOVERRUN=0
authorMark Andrews <marka@isc.org>
Fri, 5 Jan 2018 01:13:17 +0000 (12:13 +1100)
committerMark Andrews <marka@isc.org>
Fri, 5 Jan 2018 01:13:17 +0000 (12:13 +1100)
lib/isc/mem.c

index c0e1c5e264de48558676d3bc2c41c461173a1fcd..b2898c63658c89e219aadbfdc70cd216d6cc7335 100644 (file)
@@ -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;
        }