From cb73d0b1e29cd96213654f245022a80d42be56a2 Mon Sep 17 00:00:00 2001 From: tk906328 Date: Fri, 24 Jul 2020 09:07:41 +0800 Subject: [PATCH] libnm-core: avoid compiler warning in nm_connection_to_dbus_full() Deal with compiling warning about variable not initialized before use. [thaller@redhat.com: reworded original commit message] https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/587 --- libnm-core/nm-connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnm-core/nm-connection.c b/libnm-core/nm-connection.c index b1eff83e7c..b410baf336 100644 --- a/libnm-core/nm-connection.c +++ b/libnm-core/nm-connection.c @@ -2251,7 +2251,7 @@ nm_connection_to_dbus_full (NMConnection *connection, GVariantBuilder builder; gboolean any = FALSE; gs_free NMSetting **settings = NULL; - guint settings_len; + guint settings_len = 0; guint i; g_return_val_if_fail (NM_IS_CONNECTION (connection), NULL);