From 5c593fae4227651075cfc9445f17dad6ae0a0b47 Mon Sep 17 00:00:00 2001 From: Hisham Date: Wed, 3 Feb 2016 02:02:30 +0000 Subject: [PATCH] Be stricter! --- XAlloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XAlloc.c b/XAlloc.c index 9d63eaef..c3c1ae3e 100644 --- a/XAlloc.c +++ b/XAlloc.c @@ -27,7 +27,7 @@ void* xMalloc(size_t size) { void* xCalloc(size_t nmemb, size_t size) { void* data = calloc(nmemb, size); - if (!data && nmemb > 0 && size > 0) { + if (!data) { curs_set(1); endwin(); write(2, oomMessage, sizeof oomMessage - 1);