diff options
author | Russ Cox <rsc@swtch.com> | 2008-01-30 13:47:07 -0500 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-01-30 13:47:07 -0500 |
commit | 3a9401ae90d2a16c7a06328d397775ca5b46ffc0 (patch) | |
tree | cb74aa0e91032a566a1b33a92264e2b0faf0e228 | |
parent | 0f897f99ef576ae80a1e2d7cee29c498e3449b36 (diff) | |
download | plan9port-3a9401ae90d2a16c7a06328d397775ca5b46ffc0.tar.gz plan9port-3a9401ae90d2a16c7a06328d397775ca5b46ffc0.tar.bz2 plan9port-3a9401ae90d2a16c7a06328d397775ca5b46ffc0.zip |
sam: fix regexp match choice bug
-rw-r--r-- | src/cmd/sam/regexp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/sam/regexp.c b/src/cmd/sam/regexp.c index 8beaa036..3477baef 100644 --- a/src/cmd/sam/regexp.c +++ b/src/cmd/sam/regexp.c @@ -772,7 +772,7 @@ bexecute(File *f, Posn startp) break; case OR: /* evaluate right choice later */ - if(addinst(tl, inst->right, &tlp->se)) + if(addinst(tlp, inst->right, &tlp->se)) if(++ntl >= NLIST) goto Overflow; /* efficiency: advance and re-evaluate */ |