Commit a9223858 authored by Mark Andrews's avatar Mark Andrews
Browse files

mem.c failed to compile if ISC_MEM_CHECKOVERRUN=0

parent 9fecd013
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment