From 006c9d4ee41bae44dbf8e365c9d4910a8000e483 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Tue, 17 Feb 2015 13:59:50 -0600 Subject: Check the type of the variant before trying to parse it --- src/im-application-list.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/im-application-list.c b/src/im-application-list.c index 7e8032b..931e9ad 100644 --- a/src/im-application-list.c +++ b/src/im-application-list.c @@ -232,6 +232,8 @@ app_source_action_check_draw (Application * app, const gchar * action_name) state = g_action_group_get_action_state (G_ACTION_GROUP(app->source_actions), action_name); if (state == NULL) return FALSE; + if (!g_variant_is_of_type(state, G_VARIANT_TYPE("(uxsb)"))) + return FALSE; g_variant_get (state, "(ux&sb)", &count, &time, &string, &draws_attention); -- cgit v1.2.3