diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-03-20 12:53:39 +0000 |
---|---|---|
committer | George Kiagiadakis <gkiagia@tolabaki.gr> | 2016-09-02 21:16:45 +0300 |
commit | f576a9e8a125c16e3a562e3bb820707c1041af5c (patch) | |
tree | f7df4e69e6a5218cfb163eaab69a8edfd4fd2450 | |
parent | 43afd2866bc38efe1b2cf27989df4e36ddd21201 (diff) |
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.c | 2 |
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; |