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

Insure outdir is never NULL

CID 319037
parent 613d4f56
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -125,7 +125,7 @@ js_extract(JSContext *cx, uintN argc, jsval *arglist) ...@@ -125,7 +125,7 @@ js_extract(JSContext *cx, uintN argc, jsval *arglist)
JS_ReportError(cx, "Invalid output directory specified (null or undefined)"); JS_ReportError(cx, "Invalid output directory specified (null or undefined)");
else else
JSVALUE_TO_MSTRING(cx, argv[0], outdir, NULL); JSVALUE_TO_MSTRING(cx, argv[0], outdir, NULL);
if(JS_IsExceptionPending(cx)) { if(JS_IsExceptionPending(cx) || outdir == NULL) {
free(outdir); free(outdir);
return JS_FALSE; return JS_FALSE;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment