Merge lp:~charlesk/indicator-messages/lp-1493534-fix-null-error-dereference into lp:indicator-messages/15.10

Proposed by Charles Kerr
Status: Superseded
Proposed branch: lp:~charlesk/indicator-messages/lp-1493534-fix-null-error-dereference
Merge into: lp:indicator-messages/15.10
Diff against target: 17 lines (+6/-2)
1 file modified
src/im-application-list.c (+6/-2)
To merge this branch: bzr merge lp:~charlesk/indicator-messages/lp-1493534-fix-null-error-dereference
Reviewer Review Type Date Requested Status
Pete Woods (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+270562@code.launchpad.net

This proposal has been superseded by a proposal from 2016-05-16.

Commit message

When parsing the async response of list_sources(), test GError for NULL before dereferencing it

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

fix typo

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Pete Woods (pete-woods) wrote :

Seems a bit convoluted, but okay :)

review: Approve

Unmerged revisions

449. By Charles Kerr

fix typo

448. By Charles Kerr

test the GError for NULL before dereferencing it

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-05-05 16:47:39 +0000
+++ src/im-application-list.c 2015-09-10 13:38:33 +0000
@@ -1004,8 +1004,12 @@
1004 }1004 }
1005 else1005 else
1006 {1006 {
1007 g_warning ("could not fetch the list of sources: %s", error->message);1007 if ((error != NULL) && (error->message != NULL))
1008 g_error_free (error);1008 g_warning ("could not fetch the list of sources: %s", error->message);
1009 else
1010 g_warning ("could not fetch the list of sources");
1011
1012 g_clear_error (&error);
1009 }1013 }
1010}1014}
10111015

Subscribers

People subscribed via source and target branches