diff options
Diffstat (limited to 'posix')
-rw-r--r-- | posix/regcomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/regcomp.c b/posix/regcomp.c index c404929811..531ec94f75 100644 --- a/posix/regcomp.c +++ b/posix/regcomp.c @@ -2993,7 +2993,7 @@ parse_bracket_exp (regexp, dfa, token, syntax, err) token_len = peek_token_bracket (token, regexp, syntax); if (BE (token->type == END_OF_RE, 0)) { - *err = REG_BADPAT; + *err = REG_EBRACK; goto parse_bracket_exp_free_return; } if (token->type == OP_CHARSET_RANGE) |