about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/regex/regcomp.c2
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;
 		}