Fix uninitialized nbytes in synthesize_frame.

This commit is contained in:
Brendan Eich 2008-07-28 22:25:13 -07:00
parent fc31baea45
commit b2225a4e98

View File

@ -2441,6 +2441,7 @@ TraceRecorder::synthesize_frame(JSFunction* fun, JSStackFrame* down, uintN argc,
JSInlineFrame* newifp;
nframeslots = JS_HOWMANY(sizeof(JSInlineFrame), sizeof(jsval));
nbytes = (nframeslots + script->nslots) * sizeof(jsval);
/* Allocate missing expected args adjacent to actuals. */
if (fun->nargs <= argc) {