From 99ea217e93a5e74d07ce5bb5fde656d134d2ec5c Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Tue, 9 Nov 2010 22:57:28 +0100 Subject: [PATCH] Fixed typo in x_calloc --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.2