mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 14:10:08 +01:00
nm-tool: fix uninitialized variable warning (debian #517520)
This commit is contained in:
parent
eacaeb839b
commit
88f9dca0dc
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue