Properly initialize GError

Pointed out by Florian Müllner in bug #621702
This commit is contained in:
Matthias Clasen 2010-06-15 22:06:56 -04:00
parent 1b8ee5196e
commit 48e3b31042

View File

@ -1392,6 +1392,7 @@ get_connection_cb (GObject *source_object,
GetConnectionData *data = user_data; GetConnectionData *data = user_data;
GError *error; GError *error;
error = NULL;
data->proxy->priv->connection = g_bus_get_finish (res, &error); data->proxy->priv->connection = g_bus_get_finish (res, &error);
if (data->proxy->priv->connection == NULL) if (data->proxy->priv->connection == NULL)
{ {