2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 21:17:54 +00:00

mem.c failed to compile if ISC_MEM_CHECKOVERRUN=0

This commit is contained in:
Mark Andrews 2018-01-05 12:13:17 +11:00
parent 9fecd013fe
commit a922385850

View 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;
}