]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence "unused return value" warning
authorEvan Hunt <each@isc.org>
Thu, 15 Nov 2018 20:54:11 +0000 (12:54 -0800)
committerEvan Hunt <each@isc.org>
Thu, 15 Nov 2018 20:54:11 +0000 (12:54 -0800)
lib/isc/mem.c

index 120760ee23d4cf040d72b4a40db80cb6d5b6a6f6..704bfcca0696e3afaf3283184dab282cfa557f33 100644 (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);