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>
This commit is contained in:
parent
37d81a2915
commit
7a6f3d9d6d
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ rregexec1(Reprog *progp, /* program to run */
|
||||||
switch(j->starttype) {
|
switch(j->starttype) {
|
||||||
case RUNE:
|
case RUNE:
|
||||||
p = runestrchr(s, j->startchar);
|
p = runestrchr(s, j->startchar);
|
||||||
if(p == 0 || p == j->reol)
|
if(p == 0 || s == j->reol)
|
||||||
return match;
|
return match;
|
||||||
s = p;
|
s = p;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue