aboutsummaryrefslogtreecommitdiff
path: root/src/libregexp
diff options
context:
space:
mode:
authorDavid du Colombier <0intro@gmail.com>2014-11-18 20:19:22 +0100
committerRuss Cox <rsc@google.com>2015-06-03 15:34:13 +0000
commit7a6f3d9d6d19d143417f0a9b80145d7065727290 (patch)
tree36cc931d57fc211ed1d1f09029148ca74ded4b50 /src/libregexp
parent37d81a2915cfd2766f35847e291ba50a98ddb5f3 (diff)
downloadplan9port-7a6f3d9d6d19d143417f0a9b80145d7065727290.tar.gz
plan9port-7a6f3d9d6d19d143417f0a9b80145d7065727290.tar.bz2
plan9port-7a6f3d9d6d19d143417f0a9b80145d7065727290.zip
libregexp: fix copy-paste error
Change-Id: I042d63ea62e2abd599bf9767acb3374bb39ddc7d Reviewed-on: https://plan9port-review.googlesource.com/1050 Reviewed-by: Minux Ma <minux@golang.org> Reviewed-by: Russ Cox <rsc@google.com>
Diffstat (limited to 'src/libregexp')
-rw-r--r--src/libregexp/rregexec.c2
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;