diff options
-rw-r--r-- | src/libregexp/rregexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libregexp/rregexec.c b/src/libregexp/rregexec.c index 16d95e67..c3a1753b 100644 --- a/src/libregexp/rregexec.c +++ b/src/libregexp/rregexec.c @@ -46,7 +46,7 @@ rregexec1(Reprog *progp, /* program to run */ switch(j->starttype) { case RUNE: p = runestrchr(s, j->startchar); - if(p == 0 || p == j->reol) + if(p == 0 || s == j->reol) return match; s = p; break; |