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:
parent
9fecd013fe
commit
a922385850
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user