diff options
author | Anselm R. Garbe <arg@10kloc.org> | 2006-10-06 11:52:57 +0200 |
---|---|---|
committer | Anselm R. Garbe <arg@10kloc.org> | 2006-10-06 11:52:57 +0200 |
commit | 5fd7af18c6b24bffd4701156feffcbc0db3b1d69 (patch) | |
tree | 415c093c073b1f025e6227c75846abcef0439c8a /util.c | |
parent | 02238725f6b580ea8b6356377e359f933c5ca720 (diff) | |
download | dmenu-5fd7af18c6b24bffd4701156feffcbc0db3b1d69.tar.gz dmenu-5fd7af18c6b24bffd4701156feffcbc0db3b1d69.tar.bz2 dmenu-5fd7af18c6b24bffd4701156feffcbc0db3b1d69.zip |
removed useless newlines
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |