]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Fixed typo in x_calloc
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 9 Nov 2010 21:57:28 +0000 (22:57 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 9 Nov 2010 21:57:28 +0000 (22:57 +0100)
util.c

diff --git a/util.c b/util.c
index 8105da14fa2a0bdb87478582dff3f99194476603..f71318829b8f578d19f725eba69e174494db8ef0 100644 (file)
--- a/util.c
+++ b/util.c
@@ -569,7 +569,7 @@ x_calloc(size_t nmemb, size_t size)
                return NULL;
        }
        ret = calloc(nmemb, size);
-       if (!retr) {
+       if (!ret) {
                fatal("x_calloc: Could not allocate %lu bytes", (unsigned long)size);
        }
        return ret;