Skip to content
Snippets Groups Projects
Commit 5c4893a5 authored by rswindell's avatar rswindell
Browse files

Initialize js_branch struct to 0.

sbbs->terminated is now a BOOL (instead of bool).
parent df2edb95
No related branches found
No related tags found
No related merge requests found
...@@ -762,12 +762,12 @@ bool sbbs_t::js_init() ...@@ -762,12 +762,12 @@ bool sbbs_t::js_init()
if((js_cx = JS_NewContext(js_runtime, startup->js_cx_stack))==NULL) if((js_cx = JS_NewContext(js_runtime, startup->js_cx_stack))==NULL)
return(false); return(false);
memset(&js_branch,0,sizeof(js_branch));
js_branch.limit = startup->js_branch_limit; js_branch.limit = startup->js_branch_limit;
js_branch.gc_interval = startup->js_gc_interval; js_branch.gc_interval = startup->js_gc_interval;
js_branch.yield_interval = startup->js_yield_interval; js_branch.yield_interval = startup->js_yield_interval;
js_branch.counter = 0; /* loop counter */ js_branch.terminated = &terminated;
js_branch.terminated = (BOOL*)&terminated;
bool success=false; bool success=false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment