From: Michael Stapelberg Date: Sat, 24 Jul 2010 10:35:16 +0000 (+0200) Subject: little style fixes, part 2 X-Git-Tag: 4.0~47 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d60a741f7865f05473c56d6284a42bbd191e236f;p=i3%2Fi3 little style fixes, part 2 --- diff --git a/src/config.c b/src/config.c index 0b4762df..e22e7c8e 100644 --- a/src/config.c +++ b/src/config.c @@ -54,9 +54,9 @@ char *resolve_tilde(const char *path) { /* no match, or many wildcard matches are bad */ if (res == GLOB_NOMATCH || globbuf.gl_pathc != 1) result = sstrdup(path); - else if (res != 0) + else if (res != 0) { die("glob() failed"); - else { + } else { head = globbuf.gl_pathv[0]; result = scalloc(strlen(head) + (tail ? strlen(tail) : 0) + 1); strncpy(result, head, strlen(head));