From 17361482108e2a8757dc4aa69ed36b002251a08f Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 7 May 2012 17:50:32 -0400 Subject: [PATCH] fix copy and paste error in regex code causing mishandling of \) in BRE --- src/regex/regcomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1