aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd/acme/regx.c2
-rw-r--r--src/cmd/sam/regexp.c2
-rw-r--r--src/libregexp/regexec.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/acme/regx.c b/src/cmd/acme/regx.c
index 8904e9cb..65944757 100644
--- a/src/cmd/acme/regx.c
+++ b/src/cmd/acme/regx.c
@@ -668,7 +668,7 @@ rxexecute(Text *t, Rune *r, uint startp, uint eof, Rangeset *rp)
/* evaluate right choice later */
if(++ntl >= NLIST)
goto Overflow;
- addinst(tlp, inst->u.right, &tlp->se);
+ addinst(tl, inst->u.right, &tlp->se);
/* efficiency: advance and re-evaluate */
inst = inst->u1.left;
goto Switchstmt;
diff --git a/src/cmd/sam/regexp.c b/src/cmd/sam/regexp.c
index d4c85050..937fb4fe 100644
--- a/src/cmd/sam/regexp.c
+++ b/src/cmd/sam/regexp.c
@@ -647,7 +647,7 @@ execute(File *f, Posn startp, Posn eof)
/* evaluate right choice later */
if(++ntl >= NLIST)
goto Overflow;
- addinst(tlp, inst->right, &tlp->se);
+ addinst(tl, inst->right, &tlp->se);
/* efficiency: advance and re-evaluate */
inst = inst->left;
goto Switchstmt;
diff --git a/src/libregexp/regexec.c b/src/libregexp/regexec.c
index a00fbcbc..c04182a1 100644
--- a/src/libregexp/regexec.c
+++ b/src/libregexp/regexec.c
@@ -132,7 +132,7 @@ regexec1(Reprog *progp, /* program to run */
break;
case OR:
/* evaluate right choice later */
- if(_renewthread(tlp, inst->u1.right, ms, &tlp->se) == tle)
+ if(_renewthread(tl, inst->u1.right, ms, &tlp->se) == tle)
return -1;
/* efficiency: advance and re-evaluate */
continue;