From: Colin Walters Date: Tue, 16 Apr 2013 18:03:17 +0000 (-0400) Subject: jsauthority: We can really only handle a string X-Git-Tag: 0.111~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9943e730d0d7f26a239834a07acb3bc3039ba57c;p=platform%2Fupstream%2Fpolkit.git jsauthority: We can really only handle a string JSVAL_TO_STRING would barf on a null value, so don't claim to handle it. --- 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;