summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2018-03-23 15:22:59 -0400
committerRay Strode <rstrode@redhat.com>2018-04-03 14:16:25 -0400
commita1a66f2ecbae005a77fa3a2305e8cde6bf67d545 (patch)
treeefeae2334f0a3e06c982319b03b9371f7664c36c
parent8f60e851bf6d95b6c3c5b627bbf2acfadfbf7c6e (diff)
downloadpolkit-a1a66f2ecbae005a77fa3a2305e8cde6bf67d545.tar.gz
jsauthority: call JS_Init
This is now required Signed-off-by: Ray Strode <rstrode@redhat.com> https://bugs.freedesktop.org/show_bug.cgi?id=105865
-rw-r--r--src/polkitbackend/polkitbackendjsauthority.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/polkitbackend/polkitbackendjsauthority.cpp b/src/polkitbackend/polkitbackendjsauthority.cpp
index 5a5fd5e..7e98adb 100644
--- a/src/polkitbackend/polkitbackendjsauthority.cpp
+++ b/src/polkitbackend/polkitbackendjsauthority.cpp
@@ -43,6 +43,7 @@
#include <systemd/sd-login.h>
#endif /* HAVE_LIBSYSTEMD */
+#include <js/Initialization.h>
#include <jsapi.h>
#include "initjs.h" /* init.js */
@@ -650,6 +651,8 @@ polkit_backend_js_authority_class_init (PolkitBackendJsAuthorityClass *klass)
g_type_class_add_private (klass, sizeof (PolkitBackendJsAuthorityPrivate));
+
+ JS_Init ();
}
/* ---------------------------------------------------------------------------------------------------- */