2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

silence "unused return value" warning

This commit is contained in:
Evan Hunt
2018-11-15 12:54:11 -08:00
parent de0290821a
commit c2a274cc5d

View File

@@ -734,8 +734,8 @@ default_memalloc(void *arg, size_t size) {
if (ptr == NULL && size != 0) {
char strbuf[ISC_STRERRORSIZE];
strerror_r(errno, strbuf, sizeof(strbuf));
isc_error_fatal(__FILE__, __LINE__, "malloc failed: %s", strbuf);
isc_error_fatal(__FILE__, __LINE__, "malloc failed: %s",
strerror_r(errno, strbuf, sizeof(strbuf)));
}
return (ptr);