]> git.sur5r.net Git - i3/i3/commitdiff
retab! src/config.c
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 30 May 2009 20:24:05 +0000 (22:24 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 30 May 2009 20:24:05 +0000 (22:24 +0200)
src/config.c

index 82219793c20e574e63630a2f399124b8ce7ce2ed..ec3be4ed9b8165876bcdf460868d1738b3186736 100644 (file)
@@ -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;
 }