]> diplodocus.org Git - nmh/commitdiff
Fix error message when attempting to xmh_realloc() 0 bytes.
authorRalph Corderoy <ralph@inputplus.co.uk>
Sat, 15 Oct 2016 22:40:00 +0000 (23:40 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Sat, 15 Oct 2016 22:40:00 +0000 (23:40 +0100)
Though really, I'd expect it to perform a free(3) then, as the real
realloc(3) does.

sbr/utils.c

index f24f00def825f46d8495109e0551f6aa9caac290..4a460762bd035695e4abf5974b4721b4a56ff817 100644 (file)
@@ -56,7 +56,7 @@ mh_xrealloc(void *ptr, size_t size)
         return mh_xmalloc(size);
 
     if (size == 0)
-        adios(NULL, "Tried to realloc 0bytes");
+        adios(NULL, "Tried to realloc 0 bytes");
 
     memory = realloc(ptr, size);
     if (!memory)