summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-20 12:53:39 +0000
committerGeorge Kiagiadakis <gkiagia@tolabaki.gr>2016-09-02 21:16:45 +0300
commitf576a9e8a125c16e3a562e3bb820707c1041af5c (patch)
treef7df4e69e6a5218cfb163eaab69a8edfd4fd2450
parent43afd2866bc38efe1b2cf27989df4e36ddd21201 (diff)
downloadtelepathy-mission-control-f576a9e8a125c16e3a562e3bb820707c1041af5c.tar.gz
dispatcher_delegate_channels: initialize am
Otherwise, if we "goto error" too soon, we'll try to g_object_unref uninitialized memory. gcc doesn't spot that because we're using tp_clear_object, which uses an intermediate variable, and it doesn't propagate "uninitializedness" through assignments.
-rw-r--r--src/mcd-dispatcher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index 2fc08286..b004b096 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -2126,7 +2126,7 @@ dispatcher_delegate_channels (
gchar *sender = NULL;
McdConnection *conn = NULL;
DelegateChannelsCtx *ctx = NULL;
- McdAccountManager *am;
+ McdAccountManager *am = NULL;
guint i;
GList *l;