diff options
author | Ray Strode <rstrode@redhat.com> | 2018-03-23 15:22:59 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2018-04-03 10:49:23 -0400 |
commit | 4ad5a4aaf77d1763526ae85c29986160473645f7 (patch) | |
tree | efeae2334f0a3e06c982319b03b9371f7664c36c | |
parent | 9865ad93b654c3e1907296e5d78f274145204712 (diff) | |
download | polkit-4ad5a4aaf77d1763526ae85c29986160473645f7.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.cpp | 3 |
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 (); } /* ---------------------------------------------------------------------------------------------------- */ |