mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 23:28:54 +02:00
Properly initialize GError
Pointed out by Florian Müllner in bug #621702
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user