projects
/
platform
/
upstream
/
polkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18d97c9
)
jsauthority: We can really only handle a string
author
Colin Walters
<walters@verbum.org>
Tue, 16 Apr 2013 18:03:17 +0000
(14:03 -0400)
committer
Colin 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
patch
|
blob
|
history
diff --git
a/src/polkitbackend/polkitbackendjsauthority.c
b/src/polkitbackend/polkitbackendjsauthority.c
index 6abea0aed5e0a5f06e4818eaeab323405561877c..5d2686b60e6b10b11deef957502617f9d453d7f6 100644
(file)
--- 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;