diff options
Diffstat (limited to 'scripts/config/util.c')
-rw-r--r-- | scripts/config/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/config/util.c b/scripts/config/util.c index 104ff0e4c..0a2f82757 100644 --- a/scripts/config/util.c +++ b/scripts/config/util.c | |||
@@ -348,7 +348,7 @@ first_alpha(const char *string, const char *exempt) | |||
348 | c = tolower(string[i]); | 348 | c = tolower(string[i]); |
349 | 349 | ||
350 | if (strchr("<[(", c)) ++in_paren; | 350 | if (strchr("<[(", c)) ++in_paren; |
351 | if (strchr(">])", c)) --in_paren; | 351 | if (strchr(">])", c) && in_paren > 0) --in_paren; |
352 | 352 | ||
353 | if ((! in_paren) && isalpha(c) && | 353 | if ((! in_paren) && isalpha(c) && |
354 | strchr(exempt, c) == 0) | 354 | strchr(exempt, c) == 0) |