summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2013-04-16 14:03:17 -0400
committerColin Walters <walters@verbum.org>2013-04-23 10:49:12 -0400
commit9943e730d0d7f26a239834a07acb3bc3039ba57c (patch)
tree2712a9bdeac5d373e339149ca11240540203381f
parent18d97c95c022bb381efab8fb6ac80312bd7fbc11 (diff)
downloadpolkit-9943e730d0d7f26a239834a07acb3bc3039ba57c.tar.gz
jsauthority: We can really only handle a string
JSVAL_TO_STRING would barf on a null value, so don't claim to handle it.
-rw-r--r--src/polkitbackend/polkitbackendjsauthority.c2
1 files changed, 1 insertions, 1 deletions
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;