summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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