[next] telepathy-glib: text-channel: be sure to initialize GErrors to NULL

Jonny Lamb jonny at kemper.freedesktop.org
Fri Aug 3 03:55:35 PDT 2012


Module: telepathy-glib
Branch: next
Commit: f2925fdac401f3efbf6b92f6e50c72e600592b21
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=f2925fdac401f3efbf6b92f6e50c72e600592b21

Author: Jonny Lamb <jonny.lamb at collabora.co.uk>
Date:   Fri Aug  3 11:55:10 2012 +0100

text-channel: be sure to initialize GErrors to NULL

Signed-off-by: Jonny Lamb <jonny.lamb at collabora.co.uk>

---

 telepathy-glib/text-channel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/telepathy-glib/text-channel.c b/telepathy-glib/text-channel.c
index 0882932..54e1682 100644
--- a/telepathy-glib/text-channel.c
+++ b/telepathy-glib/text-channel.c
@@ -395,7 +395,7 @@ tp_text_channel_prepare_chat_states_async (TpProxy *proxy,
 {
   TpChannel *channel = (TpChannel *) proxy;
   GSimpleAsyncResult *result;
-  GError *error;
+  GError *error = NULL;
 
   result = g_simple_async_result_new ((GObject *) proxy, callback, user_data,
       tp_text_channel_prepare_chat_states_async);



More information about the telepathy-commits mailing list