summaryrefslogtreecommitdiff
path: root/src/regex/regcomp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regex/regcomp.c')
-rw-r--r--src/regex/regcomp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/regex/regcomp.c b/src/regex/regcomp.c
index d9076275..01d42a8e 100644
--- a/src/regex/regcomp.c
+++ b/src/regex/regcomp.c
@@ -1298,10 +1298,7 @@ tre_parse(tre_parse_ctx_t *ctx)
else
{
/* Escaped character. */
- result = tre_ast_new_literal(ctx->mem, *ctx->re, *ctx->re,
- ctx->position);
- ctx->position++;
- ctx->re++;
+ goto parse_literal;
}
break;
}