mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-03 16:15:27 +00:00
silence "unused return value" warning
This commit is contained in:
@@ -734,8 +734,8 @@ default_memalloc(void *arg, size_t size) {
|
|||||||
|
|
||||||
if (ptr == NULL && size != 0) {
|
if (ptr == NULL && size != 0) {
|
||||||
char strbuf[ISC_STRERRORSIZE];
|
char strbuf[ISC_STRERRORSIZE];
|
||||||
strerror_r(errno, strbuf, sizeof(strbuf));
|
isc_error_fatal(__FILE__, __LINE__, "malloc failed: %s",
|
||||||
isc_error_fatal(__FILE__, __LINE__, "malloc failed: %s", strbuf);
|
strerror_r(errno, strbuf, sizeof(strbuf)));
|
||||||
}
|
}
|
||||||
|
|
||||||
return (ptr);
|
return (ptr);
|
||||||
|
Reference in New Issue
Block a user