mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
fix copy and paste error in regex code causing mishandling of \) in BRE
This commit is contained in:
parent
a5a4778335
commit
1736148210
1 changed files with 1 additions and 1 deletions
|
@ -1186,7 +1186,7 @@ tre_parse(tre_parse_ctx_t *ctx)
|
|||
ctx->re++;
|
||||
goto lparen;
|
||||
}
|
||||
if (!(ctx->cflags & REG_EXTENDED) && *(ctx->re + 1) == CHAR_LPAREN)
|
||||
if (!(ctx->cflags & REG_EXTENDED) && *(ctx->re + 1) == CHAR_RPAREN)
|
||||
{
|
||||
goto empty_atom;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue