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

Fix bug in js.eval() reported by MSVC10 (using uninitialized variable 'cx').

parent 96bc5df6
No related branches found
No related tags found
No related merge requests found
......@@ -271,7 +271,7 @@ js_eval(JSContext *parent_cx, uintN argc, jsval *arglist)
if((str=JS_ValueToString(parent_cx, argv[0]))==NULL)
return(JS_FALSE);
JSSTRING_TO_STRING(cx, str, buf, NULL);
JSSTRING_TO_STRING(parent_cx, str, buf, NULL);
if(buf==NULL)
return(JS_FALSE);
buflen=JS_GetStringLength(str);
......
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