summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-02-03 02:02:30 +0000
committerHisham <hisham@gobolinux.org>2016-02-03 02:02:30 +0000
commit5c593fae4227651075cfc9445f17dad6ae0a0b47 (patch)
tree91a9c32cab6011d7b31042f6587342768fd076bc
parentd311e85b91f226914de1f56f67590191b419b45f (diff)
Be stricter!
-rw-r--r--XAlloc.c2
1 files changed, 1 insertions, 1 deletions
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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy