mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-14 14:02:47 +00:00
Bug 328373: Create local variable and copy value to suppress compiler warning
This commit is contained in:
parent
53063c0d9d
commit
663a0df9ff
@ -939,10 +939,12 @@ JS_EvaluateInStackFrame(JSContext *cx, JSStackFrame *fp,
|
||||
{
|
||||
jschar *chars;
|
||||
JSBool ok;
|
||||
size_t len = length;
|
||||
|
||||
chars = js_InflateString(cx, bytes, &length);
|
||||
chars = js_InflateString(cx, bytes, &len);
|
||||
if (!chars)
|
||||
return JS_FALSE;
|
||||
length = (uintN) len;
|
||||
ok = JS_EvaluateUCInStackFrame(cx, fp, chars, length, filename, lineno,
|
||||
rval);
|
||||
JS_free(cx, chars);
|
||||
|
Loading…
x
Reference in New Issue
Block a user