diff options
author | Ted Gould <ted@gould.cx> | 2015-04-03 14:51:51 +0000 |
---|---|---|
committer | CI Train Bot <ci-train-bot@canonical.com> | 2015-04-03 14:51:51 +0000 |
commit | 099c240f34e3342e283563eb1f58bd8d08f36a4d (patch) | |
tree | 133764cda0b24be837aa5fadd4ea801770acde96 /src | |
parent | 61d8259f9878c3a20c8882f18f722e94445a8f6e (diff) | |
parent | 006c9d4ee41bae44dbf8e365c9d4910a8000e483 (diff) | |
download | ayatana-indicator-messages-099c240f34e3342e283563eb1f58bd8d08f36a4d.tar.gz ayatana-indicator-messages-099c240f34e3342e283563eb1f58bd8d08f36a4d.tar.bz2 ayatana-indicator-messages-099c240f34e3342e283563eb1f58bd8d08f36a4d.zip |
Verify state type before parsing
Approved by: Charles Kerr, PS Jenkins bot
Diffstat (limited to 'src')
-rw-r--r-- | src/im-application-list.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/im-application-list.c b/src/im-application-list.c index 2ccc022..36b2ff3 100644 --- a/src/im-application-list.c +++ b/src/im-application-list.c @@ -293,6 +293,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); |