aboutsummaryrefslogtreecommitdiff
path: root/posix/regcomp.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-11-13 06:38:30 +0000
committerUlrich Drepper <drepper@redhat.com>2003-11-13 06:38:30 +0000
commitf6953f16bb49383a162560662778a377e4501039 (patch)
tree40e05a364064302560cd616d4817cb5595516e35 /posix/regcomp.c
parent06e8303a288f626929d69e57eb4128b2e40b1313 (diff)
downloadglibc-f6953f16bb49383a162560662778a377e4501039.tar
glibc-f6953f16bb49383a162560662778a377e4501039.tar.gz
glibc-f6953f16bb49383a162560662778a377e4501039.tar.bz2
glibc-f6953f16bb49383a162560662778a377e4501039.zip
Update.
* posix/regcomp.c (parse_bracket_exp): If end of expression is seen, return EBRACK error, not BADPAT.
Diffstat (limited to 'posix/regcomp.c')
-rw-r--r--posix/regcomp.c2
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)