Skip to content
Snippets Groups Projects
Commit 46b2a552 authored by deuce's avatar deuce
Browse files

More robust (but still crashes)

parent 92fa0017
No related branches found
No related tags found
No related merge requests found
......@@ -1843,14 +1843,16 @@ js_whos_online(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rva
static JSBool
js_spy(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
{
int32 node_num=1;
int32 node_num=0;
sbbs_t* sbbs;
if((sbbs=(sbbs_t*)JS_GetContextPrivate(cx))==NULL)
return(JS_FALSE);
if(!JS_ValueToInt32(cx,argv[0],&node_num))
node_num=0;
if(argc)
if(!JS_ValueToInt32(cx,argv[0],&node_num))
node_num=0;
}
sbbs->spy(node_num);
return(JS_TRUE);
......
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