diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-05-07 17:50:32 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-05-07 17:50:32 -0400 |
commit | 17361482108e2a8757dc4aa69ed36b002251a08f (patch) | |
tree | 7aa1cfe5afa6d978cd8018d0e58f407c73dd32d2 /src/regex/regcomp.c | |
parent | a5a47783359dff3e583693bcddc1c5e3311d96ac (diff) | |
download | musl-17361482108e2a8757dc4aa69ed36b002251a08f.tar.gz |
fix copy and paste error in regex code causing mishandling of \) in BRE
Diffstat (limited to 'src/regex/regcomp.c')
-rw-r--r-- | src/regex/regcomp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex/regcomp.c b/src/regex/regcomp.c index 5f119d17..c72f7d63 100644 --- a/src/regex/regcomp.c +++ b/src/regex/regcomp.c @@ -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; } |