diff options
author | Ray Strode <rstrode@redhat.com> | 2018-03-23 15:22:59 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2018-04-03 14:16:25 -0400 |
commit | a1a66f2ecbae005a77fa3a2305e8cde6bf67d545 (patch) | |
tree | efeae2334f0a3e06c982319b03b9371f7664c36c /src | |
parent | 8f60e851bf6d95b6c3c5b627bbf2acfadfbf7c6e (diff) | |
download | polkit-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
Diffstat (limited to 'src')
-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 (); } /* ---------------------------------------------------------------------------------------------------- */ |