aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2015-02-17 13:59:50 -0600
committerTed Gould <ted@gould.cx>2015-02-17 13:59:50 -0600
commit006c9d4ee41bae44dbf8e365c9d4910a8000e483 (patch)
tree79cd9579a7b4504c421852db657bd07ced5e6130 /src
parent03f1a76de347e9b318f1b01234c3941ed5b4c7e8 (diff)
downloadayatana-indicator-messages-006c9d4ee41bae44dbf8e365c9d4910a8000e483.tar.gz
ayatana-indicator-messages-006c9d4ee41bae44dbf8e365c9d4910a8000e483.tar.bz2
ayatana-indicator-messages-006c9d4ee41bae44dbf8e365c9d4910a8000e483.zip
Check the type of the variant before trying to parse it
Diffstat (limited to 'src')
-rw-r--r--src/im-application-list.c2
1 files changed, 2 insertions, 0 deletions
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);