diff options
Diffstat (limited to 'jimregexp.c')
-rw-r--r-- | jimregexp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jimregexp.c b/jimregexp.c index 0b6ccf6..136b0c0 100644 --- a/jimregexp.c +++ b/jimregexp.c @@ -774,7 +774,7 @@ static int regatom(regex_t *preg, int *flagp) preg->err = REG_ERR_NULL_CHAR; return 0; } - if (start == '\\' && *pattern == 0) { + if (end == '\\' && *pattern == 0) { preg->err = REG_ERR_INVALID_ESCAPE; return 0; } |