From: Joel Rosdahl Date: Tue, 9 Nov 2010 21:57:28 +0000 (+0100) Subject: Fixed typo in x_calloc X-Git-Tag: v3.1.2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=99ea217e93a5e74d07ce5bb5fde656d134d2ec5c;p=thirdparty%2Fccache.git Fixed typo in x_calloc --- diff --git a/util.c b/util.c index 8105da14f..f71318829 100644 --- 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;