зеркало из https://github.com/mozilla/pjs.git
Bug 636265 - Don't pass unused return value in nsJSConfigTriggers.cpp, r=jorendorff
This commit is contained in:
Родитель
ccd8c1a9d4
Коммит
0d885ec1fa
|
@ -191,7 +191,6 @@ nsresult EvaluateAdminConfigScript(const char *js_buffer, size_t length,
|
||||||
PRBool bCallbacks, PRBool skipFirstLine)
|
PRBool bCallbacks, PRBool skipFirstLine)
|
||||||
{
|
{
|
||||||
JSBool ok;
|
JSBool ok;
|
||||||
jsval result;
|
|
||||||
|
|
||||||
if (skipFirstLine) {
|
if (skipFirstLine) {
|
||||||
/* In order to protect the privacy of the JavaScript preferences file
|
/* In order to protect the privacy of the JavaScript preferences file
|
||||||
|
@ -226,7 +225,7 @@ nsresult EvaluateAdminConfigScript(const char *js_buffer, size_t length,
|
||||||
|
|
||||||
JS_BeginRequest(autoconfig_cx);
|
JS_BeginRequest(autoconfig_cx);
|
||||||
ok = JS_EvaluateScript(autoconfig_cx, autoconfig_glob,
|
ok = JS_EvaluateScript(autoconfig_cx, autoconfig_glob,
|
||||||
js_buffer, length, filename, 0, &result);
|
js_buffer, length, filename, 0, nsnull);
|
||||||
JS_EndRequest(autoconfig_cx);
|
JS_EndRequest(autoconfig_cx);
|
||||||
|
|
||||||
JS_MaybeGC(autoconfig_cx);
|
JS_MaybeGC(autoconfig_cx);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче