sam: fix regexp match choice bug

This commit is contained in:
Russ Cox 2008-01-30 13:47:07 -05:00
parent 0f897f99ef
commit 3a9401ae90

View file

@ -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 */