Commit ed124a97 authored by Ken Thompson's avatar Ken Thompson

segfault

R=rsc
OCL=31467
CL=31467
parent f7ac3136
...@@ -1204,6 +1204,7 @@ oldname(Sym *s) ...@@ -1204,6 +1204,7 @@ oldname(Sym *s)
c->outer = n->closure; c->outer = n->closure;
n->closure = c; n->closure = c;
c->closure = n; c->closure = n;
if(funclit != N)
funclit->cvars = list(c, funclit->cvars); funclit->cvars = list(c, funclit->cvars);
} }
// return ref to closure var, not original // return ref to closure var, not original
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment