PolicyKit: Branch 'master'

Ray Strode halfline at kemper.freedesktop.org
Tue Apr 3 19:29:31 UTC 2018


 src/polkitbackend/polkitbackendjsauthority.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 373705b35e7f6c7dc83de5e0a3ce11ecd15d0409
Author: Ray Strode <rstrode at redhat.com>
Date:   Tue Apr 3 15:26:37 2018 -0400

    jsauthority: pass "%s" format string to remaining report function
    
    commit 00adeee1b62 attempted to add a "%s" format string to the
    two JS_Report invocations that needed it, but somehow only got
    one them.
    
    This commit gets the other one.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=105865

diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp
index 9746c47..517f3c6 100644
--- a/src/polkitbackend/polkitbackendjsauthority.cpp
+++ b/src/polkitbackend/polkitbackendjsauthority.cpp
@@ -1292,7 +1292,7 @@ js_polkit_log (JSContext  *cx,
   JS::CallArgs args = JS::CallArgsFromVp (argc, vp);
 
   s = JS_EncodeString (cx, args[0].toString ());
-  JS_ReportWarningUTF8 (cx, s);
+  JS_ReportWarningUTF8 (cx, "%s", s);
   JS_free (cx, s);
 
   ret = true;


More information about the hal-commit mailing list