From: Michael Stapelberg Date: Sat, 30 May 2009 20:24:05 +0000 (+0200) Subject: retab! src/config.c X-Git-Tag: 3.b~83 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=706c44509e8b04ef47652bd28579574909eba367;p=i3%2Fi3 retab! src/config.c --- diff --git a/src/config.c b/src/config.c index 82219793..ec3be4ed 100644 --- a/src/config.c +++ b/src/config.c @@ -25,12 +25,12 @@ Config config; * */ static char *glob_path(const char *path) { - static glob_t globbuf; - if (glob(path, GLOB_NOCHECK | GLOB_TILDE, NULL, &globbuf) < 0) - die("glob() failed"); - char *result = sstrdup(globbuf.gl_pathc > 0 ? globbuf.gl_pathv[0] : path); - globfree(&globbuf); - return result; + static glob_t globbuf; + if (glob(path, GLOB_NOCHECK | GLOB_TILDE, NULL, &globbuf) < 0) + die("glob() failed"); + char *result = sstrdup(globbuf.gl_pathc > 0 ? globbuf.gl_pathv[0] : path); + globfree(&globbuf); + return result; }