diff options
author | Ray Strode <rstrode@redhat.com> | 2018-03-23 15:22:59 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2018-03-28 16:43:52 -0400 |
commit | 5067c8305afe838cf89aa646e1b718800b94179c (patch) | |
tree | ec09a8eb820fa79bb083b4c139109f60604bb8e1 | |
parent | 1165181a21ab82d7c57299078fe768a7b8215e4f (diff) | |
download | polkit-5067c8305afe838cf89aa646e1b718800b94179c.tar.gz |
jsauthority: call JS_Init
This is now required
-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 c75b396..0016f31 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 */ @@ -661,6 +662,8 @@ polkit_backend_js_authority_class_init (PolkitBackendJsAuthorityClass *klass) g_type_class_add_private (klass, sizeof (PolkitBackendJsAuthorityPrivate)); + + JS_Init (); } /* ---------------------------------------------------------------------------------------------------- */ |