summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2018-04-03 15:26:37 -0400
committerRay Strode <rstrode@redhat.com>2018-04-03 15:29:19 -0400
commit373705b35e7f6c7dc83de5e0a3ce11ecd15d0409 (patch)
treede84d038615a35b1d513ac1b321c109704d8d160
parent2cfe40d001049ec68377f16ce09d9d168b7f4ad0 (diff)
downloadpolkit-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.cpp2
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;