summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-04-12 14:22:49 -0400
committerColin Walters <walters@verbum.org>2013-04-23 10:49:12 -0400
commit6bf958af19a1bfb1f6aacae869c7ace372d5c48b (patch)
tree5b8796106337cc67697d775b6e5a01276892f8ac
parent9943e730d0d7f26a239834a07acb3bc3039ba57c (diff)
downloadpolkit-6bf958af19a1bfb1f6aacae869c7ace372d5c48b.tar.gz
jsauthority: Use JSVAL_NULL rather than {0} struct initialization
This is future compatible with mozjs-17.0. https://bugs.freedesktop.org/show_bug.cgi?id=59830
-rw-r--r--src/polkitbackend/polkitbackendjsauthority.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/polkitbackend/polkitbackendjsauthority.c b/src/polkitbackend/polkitbackendjsauthority.c
index 5d2686b..c8cdf7f 100644
--- a/src/polkitbackend/polkitbackendjsauthority.c
+++ b/src/polkitbackend/polkitbackendjsauthority.c
@@ -425,8 +425,8 @@ load_scripts (PolkitBackendJsAuthority *authority)
static void
reload_scripts (PolkitBackendJsAuthority *authority)
{
- jsval argv[1] = {0};
- jsval rval = {0};
+ jsval argv[1] = {JSVAL_NULL};
+ jsval rval = JSVAL_NULL;
if (!dJS_CallFunctionName (authority->priv->cx,
authority->priv->js_polkit,
@@ -1144,8 +1144,8 @@ polkit_backend_js_authority_get_admin_auth_identities (PolkitBackendInteractiveA
{
PolkitBackendJsAuthority *authority = POLKIT_BACKEND_JS_AUTHORITY (_authority);
GList *ret = NULL;
- jsval argv[2] = {0};
- jsval rval = {0};
+ jsval argv[2] = {JSVAL_NULL, JSVAL_NULL};
+ jsval rval = JSVAL_NULL;
guint n;
GError *error = NULL;
JSString *ret_jsstr;
@@ -1254,8 +1254,8 @@ polkit_backend_js_authority_check_authorization_sync (PolkitBackendInteractiveAu
{
PolkitBackendJsAuthority *authority = POLKIT_BACKEND_JS_AUTHORITY (_authority);
PolkitImplicitAuthorization ret = implicit;
- jsval argv[2] = {0};
- jsval rval = {0};
+ jsval argv[2] = {JSVAL_NULL, JSVAL_NULL};
+ jsval rval = JSVAL_NULL;
GError *error = NULL;
JSString *ret_jsstr;
const jschar *ret_utf16;