diff -r 96563762b4ad -r 651f2c868b31 util.c --- a/util.c Fri Oct 06 11:37:12 2006 +0200 +++ b/util.c Fri Oct 06 11:50:15 2006 +0200 @@ -1,5 +1,4 @@ -/* - * (C)opyright MMVI Anselm R. Garbe +/* (C)opyright MMVI Anselm R. Garbe * See LICENSE file for license details. */ #include "dwm.h" @@ -33,6 +32,7 @@ void * erealloc(void *ptr, unsigned int size) { void *res = realloc(ptr, size); + if(!res) eprint("fatal: could not malloc() %u bytes\n", size); return res; @@ -44,7 +44,6 @@ if(!shell && !(shell = getenv("SHELL"))) shell = "/bin/sh"; - if(!arg->cmd) return; /* The double-fork construct avoids zombie processes and keeps the code