Merge branch 'silence-compiler-warning' into 'master'

silence "unused return value" warning

See merge request isc-projects/bind9!1066
This commit is contained in:
Evan Hunt 2018-11-15 15:54:50 -05:00
commit f5d8bd0853

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);