X-Git-Url: https://git.danieliu.xyz/?p=dmenu.git;a=blobdiff_plain;f=util.c;fp=util.c;h=fe044fc7b7978d1f3c23768e315aae415d90b11a;hp=b0612af63c5f8a231d7420bfb518a367ea1f8afa;hb=a280bdad1f16943a70eaff086852d3b11043b060;hpb=a9a5c6cc2d7d55ed7e556a4fe9d75307c6df2e84 diff --git a/util.c b/util.c index b0612af..fe044fc 100644 --- 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; }