From 0d885ec1fa83e61b38a04cc7f911b4ca1d0e33c3 Mon Sep 17 00:00:00 2001 From: Michael Wu Date: Fri, 25 Mar 2011 14:31:14 -0700 Subject: [PATCH] Bug 636265 - Don't pass unused return value in nsJSConfigTriggers.cpp, r=jorendorff --- extensions/pref/autoconfig/src/nsJSConfigTriggers.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extensions/pref/autoconfig/src/nsJSConfigTriggers.cpp b/extensions/pref/autoconfig/src/nsJSConfigTriggers.cpp index 6c7925f1475..24abe7bba84 100644 --- a/extensions/pref/autoconfig/src/nsJSConfigTriggers.cpp +++ b/extensions/pref/autoconfig/src/nsJSConfigTriggers.cpp @@ -191,7 +191,6 @@ nsresult EvaluateAdminConfigScript(const char *js_buffer, size_t length, PRBool bCallbacks, PRBool skipFirstLine) { JSBool ok; - jsval result; if (skipFirstLine) { /* 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); ok = JS_EvaluateScript(autoconfig_cx, autoconfig_glob, - js_buffer, length, filename, 0, &result); + js_buffer, length, filename, 0, nsnull); JS_EndRequest(autoconfig_cx); JS_MaybeGC(autoconfig_cx);