aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/sam/regexp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/sam/regexp.c')
-rw-r--r--src/cmd/sam/regexp.c2
1 files changed, 1 insertions, 1 deletions
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;