diff --git a/src/regex/regcomp.c b/src/regex/regcomp.c index 5f119d172e535a5ca8d6b0289ac1391e9913d045..c72f7d635fe04d6937446dba64722b23a55aac59 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; }