From 6e5e2fe5ee7ea92c93207b8f5ff5f8b674d7a72e Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 24 Jul 2010 12:34:27 +0200 Subject: [PATCH] little style fixes --- src/config.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/config.c b/src/config.c index 6d5f57f1..0b4762df 100644 --- a/src/config.c +++ b/src/config.c @@ -52,11 +52,10 @@ char *resolve_tilde(const char *path) { int res = glob(head, GLOB_TILDE, NULL, &globbuf); free(head); /* no match, or many wildcard matches are bad */ - if(res == GLOB_NOMATCH || globbuf.gl_pathc != 1) + if (res == GLOB_NOMATCH || globbuf.gl_pathc != 1) result = sstrdup(path); - else if (res != 0) { + else if (res != 0) die("glob() failed"); - } else { head = globbuf.gl_pathv[0]; result = scalloc(strlen(head) + (tail ? strlen(tail) : 0) + 1); -- 2.39.5