[glib] Properly initialize GError



commit 48e3b31042c9a86d06740f2c73cbb6ffa140ba54
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jun 15 22:06:56 2010 -0400

    Properly initialize GError
    
    Pointed out by Florian Müllner in bug #621702

 gio/gdbusproxy.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gdbusproxy.c b/gio/gdbusproxy.c
index 1344b7c..eaae1dc 100644
--- a/gio/gdbusproxy.c
+++ b/gio/gdbusproxy.c
@@ -1392,6 +1392,7 @@ get_connection_cb (GObject       *source_object,
   GetConnectionData *data = user_data;
   GError *error;
 
+  error = NULL;
   data->proxy->priv->connection = g_bus_get_finish (res, &error);
   if (data->proxy->priv->connection == NULL)
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]