summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordevzero2000 <devzero2000>2013-12-19 21:30:18 +0000
committerdevzero2000 <devzero2000>2013-12-19 21:30:18 +0000
commit7c6bfa2d2516b4b077de7ee1e2d36cd0bb36f1a6 (patch)
tree874691b608738399e92b682078f0341bb3844658
parent4add6d32b25e1400506382beb916528e0e16fd03 (diff)
downloadlibpopt-7c6bfa2d2516b4b077de7ee1e2d36cd0bb36f1a6.tar.gz
poptconfig.c: add some curly braces
In c89 declarations were only valid at the beginning of blocks.
-rw-r--r--poptconfig.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/poptconfig.c b/poptconfig.c
index 036b104..63804d5 100644
--- a/poptconfig.c
+++ b/poptconfig.c
@@ -508,6 +508,7 @@ int poptReadDefaultConfig(poptContext con, /*@unused@*/ UNUSED(int useEnv))
if (rc) goto exit;
#if defined(HAVE_GLOB_H)
+ {
struct stat sb;
if (!stat("SYSCONFDIR/popt.d", &sb) && S_ISDIR(sb.st_mode)) {
const char ** av = NULL;
@@ -528,6 +529,7 @@ int poptReadDefaultConfig(poptContext con, /*@unused@*/ UNUSED(int useEnv))
}
av=_free(av);
}
+ }
}
if (rc) goto exit;
#endif