jsauthority: We can really only handle a string
authorColin Walters <walters@verbum.org>
Tue, 16 Apr 2013 18:03:17 +0000 (14:03 -0400)
committerColin Walters <walters@verbum.org>
Tue, 23 Apr 2013 14:49:12 +0000 (10:49 -0400)
JSVAL_TO_STRING would barf on a null value, so don't
claim to handle it.

src/polkitbackend/polkitbackendjsauthority.c

index 6abea0aed5e0a5f06e4818eaeab323405561877c..5d2686b60e6b10b11deef957502617f9d453d7f6 100644 (file)
@@ -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;