From 9943e730d0d7f26a239834a07acb3bc3039ba57c Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 16 Apr 2013 14:03:17 -0400 Subject: [PATCH] jsauthority: We can really only handle a string JSVAL_TO_STRING would barf on a null value, so don't claim to handle it. --- src/polkitbackend/polkitbackendjsauthority.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/polkitbackend/polkitbackendjsauthority.c b/src/polkitbackend/polkitbackendjsauthority.c index 6abea0a..5d2686b 100644 --- a/src/polkitbackend/polkitbackendjsauthority.c +++ b/src/polkitbackend/polkitbackendjsauthority.c @@ -1191,7 +1191,7 @@ polkit_backend_js_authority_get_admin_auth_identities (PolkitBackendInteractiveA goto out; } - if (!JSVAL_IS_STRING (rval) && !JSVAL_IS_NULL (rval)) + if (!JSVAL_IS_STRING (rval)) { g_warning ("Expected a string"); goto out; -- 2.7.4