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
This commit is contained in:
tk906328 2020-07-24 09:07:41 +08:00 committed by Thomas Haller
parent 4cc93e1f80
commit cb73d0b1e2
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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);