aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-10-06 11:52:57 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-10-06 11:52:57 +0200
commit5fd7af18c6b24bffd4701156feffcbc0db3b1d69 (patch)
tree415c093c073b1f025e6227c75846abcef0439c8a /util.c
parent02238725f6b580ea8b6356377e359f933c5ca720 (diff)
downloaddmenu-5fd7af18c6b24bffd4701156feffcbc0db3b1d69.tar.gz
dmenu-5fd7af18c6b24bffd4701156feffcbc0db3b1d69.tar.bz2
dmenu-5fd7af18c6b24bffd4701156feffcbc0db3b1d69.zip
removed useless newlines
Diffstat (limited to 'util.c')
-rw-r--r--util.c5
1 files changed, 3 insertions, 2 deletions
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 <garbeam at gmail dot com>
+/* (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
* 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;