projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ebd287
)
gcredentials: Add assertion to pacify static analysis
author
Colin Walters
<walters@verbum.org>
Tue, 22 Jul 2014 18:31:25 +0000
(14:31 -0400)
committer
Colin Walters
<walters@verbum.org>
Wed, 23 Jul 2014 11:43:41 +0000
(07:43 -0400)
This should always be true.
https://bugzilla.gnome.org/show_bug.cgi?id=733576
gio/gcredentials.c
patch
|
blob
|
history
diff --git
a/gio/gcredentials.c
b/gio/gcredentials.c
index
3c01027
..
6673afd
100644
(file)
--- a/
gio/gcredentials.c
+++ b/
gio/gcredentials.c
@@
-335,6
+335,7
@@
credentials_native_type_check (GCredentialsType requested_type,
#if G_CREDENTIALS_SUPPORTED
supported = g_enum_get_value (enum_class, G_CREDENTIALS_NATIVE_TYPE);
+ g_assert (supported);
g_warning ("g_credentials_%s_native: Trying to %s credentials of type %s "
"but only %s is supported on this platform.",
op, op,