Skip to content
Snippets Groups Projects
Commit a30b8541 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

"posts" property doesn't rely on subscan pointer.

parent b71a8184
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1099 passed
......@@ -296,7 +296,7 @@ static JSBool js_sub_get(JSContext *cx, JSObject *obj, jsid id, jsval *vp)
if(scan != NULL) *vp=UINT_TO_JSVAL(scan->last);
break;
case SUB_PROP_POSTS:
if(scan != NULL) *vp=UINT_TO_JSVAL(getposts(p->cfg, p->subnum));
*vp=UINT_TO_JSVAL(getposts(p->cfg, p->subnum));
break;
}
......
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