nm-tool: fix uninitialized variable warning (debian #517520)

This commit is contained in:
Dan Williams 2009-03-02 13:28:12 -05:00
parent eacaeb839b
commit 88f9dca0dc

View file

@ -508,7 +508,7 @@ get_one_connection (DBusGConnection *bus,
GHashTable *table)
{
DBusGProxy *proxy;
NMConnection *connection;
NMConnection *connection = NULL;
const char *service;
GError *error = NULL;
GHashTable *settings = NULL;
@ -549,7 +549,8 @@ get_one_connection (DBusGConnection *bus,
out:
g_clear_error (&error);
g_object_unref (connection);
if (connection)
g_object_unref (connection);
g_object_unref (proxy);
}