Introduction
Introduction Statistics Contact Development Disclaimer Help
die() on calloc failure - dmenu - dynamic menu
git clone git://git.suckless.org/dmenu
Log
Files
Refs
README
LICENSE
---
commit a280bdad1f16943a70eaff086852d3b11043b060
parent a9a5c6cc2d7d55ed7e556a4fe9d75307c6df2e84
Author: Hiltjo Posthuma <[email protected]>
Date: Sat, 5 Nov 2016 11:36:42 +0100
die() on calloc failure
thanks Markus Teich and David!
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.