summaryrefslogtreecommitdiff
path: root/extra/config/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'extra/config/util.c')
-rw-r--r--extra/config/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/config/util.c b/extra/config/util.c
index d20730b88..d0cfa58ee 100644
--- a/extra/config/util.c
+++ b/extra/config/util.c
@@ -348,7 +348,7 @@ first_alpha(const char *string, const char *exempt)
c = tolower(string[i]);
if (strchr("<[(", c)) ++in_paren;
- if (strchr(">])", c)) --in_paren;
+ if (strchr(">])", c) && in_paren > 0) --in_paren;
if ((! in_paren) && isalpha(c) &&
strchr(exempt, c) == 0)