fix error checking for \ at end of regex (this was broken previously)

This commit is contained in:
Rich Felker committed 2012-05-07 17:55:13 -04:00
1 parent 1736148210
commit 952700e8c3
1 file changed
+1 -1
+1 -1
View File
@@ -1210,7 +1210,7 @@ tre_parse(tre_parse_ctx_t *ctx)
}
}
if (!*ctx->re)
if (!ctx->re[1])
/* Trailing backslash. */
return REG_EESCAPE;