diff options
author | Ted Gould <ted@gould.cx> | 2013-08-26 14:27:34 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-08-26 14:27:34 +0000 |
commit | 8c8e6d342f5234b93c57a7576b50303ed4938317 (patch) | |
tree | e77c1607fbe6be0f8f746f4c776b88839bf0e4cc /src | |
parent | 36bd5ab78d3b9f02e7b1bbeed7d487e2ebd455c2 (diff) | |
parent | ee90f3a3b1b81df0803d6cf87cd6a17d710909bd (diff) | |
download | ayatana-indicator-messages-8c8e6d342f5234b93c57a7576b50303ed4938317.tar.gz ayatana-indicator-messages-8c8e6d342f5234b93c57a7576b50303ed4938317.tar.bz2 ayatana-indicator-messages-8c8e6d342f5234b93c57a7576b50303ed4938317.zip |
Protect against invalid actions. Fixes: https://bugs.launchpad.net/bugs/1216758.
Approved by Lars Uebernickel, 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 9e82314..1493adf 100644 --- a/src/im-application-list.c +++ b/src/im-application-list.c @@ -223,6 +223,8 @@ app_source_action_check_draw (Application * app, const gchar * action_name) GVariant * draw; state = g_action_group_get_action_state (G_ACTION_GROUP(app->source_actions), action_name); + if (state == NULL) + return FALSE; /* uxsb */ draw = g_variant_get_child_value(state, 3); |