From 706c44509e8b04ef47652bd28579574909eba367 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 30 May 2009 22:24:05 +0200 Subject: [PATCH] retab! src/config.c --- src/config.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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; }