Skip to content
Snippets Groups Projects
Commit 232d0f92 authored by rswindell's avatar rswindell
Browse files

Fixed suspicious pointer conversion.

parent 271b35b9
Branches
Tags
No related merge requests found
...@@ -330,7 +330,7 @@ js_login(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) ...@@ -330,7 +330,7 @@ js_login(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
} }
if(argc>2) if(argc>2)
JS_ValueToInt32(cx,argv[2],&inc_logons); JS_ValueToBoolean(cx,argv[2],&inc_logons);
if(client->client!=NULL) { if(client->client!=NULL) {
SAFECOPY(user.note,client->client->addr); SAFECOPY(user.note,client->client->addr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment