Merge lp:~ted/indicator-messages/verify-before-parse into lp:indicator-messages/15.04

Proposed by Ted Gould
Status: Merged
Approved by: Charles Kerr
Approved revision: 428
Merged at revision: 443
Proposed branch: lp:~ted/indicator-messages/verify-before-parse
Merge into: lp:indicator-messages/15.04
Diff against target: 11 lines (+2/-0)
1 file modified
src/im-application-list.c (+2/-0)
To merge this branch: bzr merge lp:~ted/indicator-messages/verify-before-parse
Reviewer Review Type Date Requested Status
Charles Kerr (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+250062@code.launchpad.net

Commit message

Verify state type before parsing

Description of the change

Never use g_variant_get(), please.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Charles Kerr (charlesk) wrote :

The Jenkins failure looks like a hiccup, so re-queueing.

The patch looks fine, but is there a bug # associated with this patch?

Revision history for this message
Ted Gould (ted) wrote :

No, it was when looking at another bug I thought this was the fix. It wasn't, but I figured we should fix it anyway.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Charles Kerr (charlesk) wrote :

And Jenkins is happy now too

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/im-application-list.c'
--- src/im-application-list.c 2015-01-26 19:04:11 +0000
+++ src/im-application-list.c 2015-02-17 20:08:22 +0000
@@ -293,6 +293,8 @@
293 state = g_action_group_get_action_state (G_ACTION_GROUP(app->source_actions), action_name);293 state = g_action_group_get_action_state (G_ACTION_GROUP(app->source_actions), action_name);
294 if (state == NULL)294 if (state == NULL)
295 return FALSE;295 return FALSE;
296 if (!g_variant_is_of_type(state, G_VARIANT_TYPE("(uxsb)")))
297 return FALSE;
296298
297 g_variant_get (state, "(ux&sb)", &count, &time, &string, &draws_attention);299 g_variant_get (state, "(ux&sb)", &count, &time, &string, &draws_attention);
298300

Subscribers

People subscribed via source and target branches