little style fixes, part 2

This commit is contained in:
Michael Stapelberg 2010-07-24 12:35:16 +02:00
parent 6e5e2fe5ee
commit d60a741f78
1 changed files with 2 additions and 2 deletions

View File

@ -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));