From 952700e8c32f7e81045cd01e1ecb3f7ca3f4c762 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 7 May 2012 17:55:13 -0400 Subject: fix error checking for \ at end of regex (this was broken previously) --- src/regex/regcomp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/regex/regcomp.c') diff --git a/src/regex/regcomp.c b/src/regex/regcomp.c index c72f7d63..ea6e6a69 100644 --- a/src/regex/regcomp.c +++ b/src/regex/regcomp.c @@ -1210,7 +1210,7 @@ tre_parse(tre_parse_ctx_t *ctx) } } - if (!*ctx->re) + if (!ctx->re[1]) /* Trailing backslash. */ return REG_EESCAPE; -- cgit v1.2.1