diff options
| author | [email protected] <unknown> | 2006-07-20 12:18:06 +0200 |
|---|---|---|
| committer | [email protected] <unknown> | 2006-07-20 12:18:06 +0200 |
| commit | dc5d967ee61046f899b3b49daeb9268c8161844a (patch) | |
| tree | 012a500412dc2c3a427a658d0f257c39de8351fb /util.c | |
| parent | Added tag 0.4 for changeset eb3165734f00fe7f7da8aeebaed00e60a57caac9 (diff) | |
| download | seiwm-dc5d967ee61046f899b3b49daeb9268c8161844a.tar.xz seiwm-dc5d967ee61046f899b3b49daeb9268c8161844a.zip | |
cleaned up code
Diffstat (limited to 'util.c')
| -rw-r--r-- | util.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -26,6 +26,7 @@ void * emallocz(unsigned int size) { void *res = calloc(1, size); + if(!res) bad_malloc(size); return res; @@ -34,6 +35,7 @@ emallocz(unsigned int size) void eprint(const char *errstr, ...) { va_list ap; + va_start(ap, errstr); vfprintf(stderr, errstr, ap); va_end(ap); @@ -44,6 +46,7 @@ void spawn(Arg *arg) { char **argv = (char **)arg->argv; + if(!argv || !argv[0]) return; if(fork() == 0) { |