From: Rich Felker Date: Mon, 7 May 2012 21:55:13 +0000 (-0400) Subject: fix error checking for \ at end of regex (this was broken previously) X-Git-Tag: v0.9.1~71 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=952700e8c32f7e81045cd01e1ecb3f7ca3f4c762;p=oweals%2Fmusl.git fix error checking for \ at end of regex (this was broken previously) --- 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;