Introduction
Introduction Statistics Contact Development Disclaimer Help
die() on calloc failure - sent - simple plaintext presentation tool
git clone git://git.suckless.org/sent
Log
Files
Refs
README
LICENSE
---
commit ca7978c59bb30a095cf8279944d3ec78361afd30
parent 8185d5eacbcd3fc2420e752e8175c05b9a35b9b3
Author: Markus Teich <[email protected]>
Date: Fri, 4 Nov 2016 19:45:08 +0100
die() on calloc failure
Diffstat:
M util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/util.c b/util.c
@@ -12,7 +12,7 @@ ecalloc(size_t nmemb, size_t size)
void *p;
if (!(p = calloc(nmemb, size)))
- perror(NULL);
+ die("calloc:");
return p;
}
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.