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

Don't use scope argument value to js.exec() if it's null

Fixes issue #611
parent 7a750b50
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4675 passed
......@@ -346,7 +346,7 @@ js_execfile(JSContext *cx, uintN argc, jsval *arglist)
return(JS_FALSE);
}
}
else {
if(js_scope == NULL) {
free(cmd);
free(startup_dir);
JS_ReportError(cx, "Invalid Scope");
......
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