From 5fd7af18c6b24bffd4701156feffcbc0db3b1d69 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Fri, 6 Oct 2006 11:52:57 +0200 Subject: removed useless newlines --- util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'util.c') diff --git a/util.c b/util.c index d0444c5..b4b163a 100644 --- a/util.c +++ b/util.c @@ -1,5 +1,4 @@ -/* - * (C)opyright MMVI Anselm R. Garbe +/* (C)opyright MMVI Anselm R. Garbe * See LICENSE file for license details. */ #include "dmenu.h" @@ -22,6 +21,7 @@ badmalloc(unsigned int size) { void * emalloc(unsigned int size) { void *res = malloc(size); + if(!res) badmalloc(size); return res; @@ -40,6 +40,7 @@ eprint(const char *errstr, ...) { char * estrdup(const char *str) { void *res = strdup(str); + if(!res) badmalloc(strlen(str)); return res; -- cgit v1.2.3-13-gbd6f