summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-07-22 14:31:25 -0400
committerColin Walters <walters@verbum.org>2014-07-23 07:43:41 -0400
commit91821974e1e9e71fb5f2c623f68c0c9e2a6a59a9 (patch)
treeec836d92cd12e6198be4fedc789d9ab8a942599d
parent8ebd287fe6ae7aee11038679d086a880c13845a2 (diff)
gcredentials: Add assertion to pacify static analysis
This should always be true. https://bugzilla.gnome.org/show_bug.cgi?id=733576
-rw-r--r--gio/gcredentials.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gio/gcredentials.c b/gio/gcredentials.c
index 3c0102794..6673afddd 100644
--- 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,