diff options
author | Ray Strode <rstrode@redhat.com> | 2018-04-03 15:26:37 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2018-04-03 15:29:19 -0400 |
commit | 373705b35e7f6c7dc83de5e0a3ce11ecd15d0409 (patch) | |
tree | de84d038615a35b1d513ac1b321c109704d8d160 | |
parent | 2cfe40d001049ec68377f16ce09d9d168b7f4ad0 (diff) | |
download | polkit-373705b35e7f6c7dc83de5e0a3ce11ecd15d0409.tar.gz |
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
-rw-r--r-- | src/polkitbackend/polkitbackendjsauthority.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |