]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Remove bogus out-of-memory check in reformat()
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 2 Oct 2018 18:31:01 +0000 (20:31 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 2 Oct 2018 18:31:01 +0000 (20:31 +0200)
src/util.c

index 40e553ea4af2792186b2c277a505bf336e626bf5..f4c1c7ef5baf1a48d6cfe7637c304b5f8d0aba5a 100644 (file)
@@ -829,9 +829,6 @@ reformat(char **ptr, const char *format, ...)
        }
        va_end(ap);
 
-       if (!ptr) {
-               fatal("Out of memory in reformat");
-       }
        if (saved) {
                free(saved);
        }