R=rsc
OCL=31467
CL=31467
This commit is contained in:
Ken Thompson 2009-07-10 16:12:21 -07:00
parent f7ac313629
commit ed124a971e
1 changed files with 2 additions and 1 deletions

View File

@ -1204,7 +1204,8 @@ oldname(Sym *s)
c->outer = n->closure;
n->closure = c;
c->closure = n;
funclit->cvars = list(c, funclit->cvars);
if(funclit != N)
funclit->cvars = list(c, funclit->cvars);
}
// return ref to closure var, not original
return n->closure;