diff options
author | Thomas Haller <thaller@redhat.com> | 2020-06-03 20:02:26 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-06-03 20:03:34 +0200 |
commit | 462877084f2ccd5ce365d022b08783ba75e8924c (patch) | |
tree | bf2c3de69dad804127870859fa2365de7a9eb686 | |
parent | aeb81183de7fe51a3a85a0559fe69523e59f68cc (diff) | |
download | NetworkManager-462877084f2ccd5ce365d022b08783ba75e8924c.tar.gz |
core: fix maybe-uninitialized warning in periodic_update_active_connection_timestamps()
../src/nm-manager.c: In function periodic_update_active_connection_timestamps:
../src/nm-manager.c:7358:43: error: t may be used uninitialized in this function [-Werror=maybe-uninitialized]
nm_settings_connection_update_timestamp (nm_active_connection_get_settings_connection (ac),
^
Fixes: 6f3ae8a56306 ('core: in periodic_update_active_connection_timestamps() use same timestamp')
-rw-r--r-- | src/nm-manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nm-manager.c b/src/nm-manager.c index f687a144fd..2b922fd716 100644 --- a/src/nm-manager.c +++ b/src/nm-manager.c @@ -7345,7 +7345,7 @@ periodic_update_active_connection_timestamps (gpointer user_data) NMManagerPrivate *priv = NM_MANAGER_GET_PRIVATE (manager); NMActiveConnection *ac; gboolean has_time = FALSE; - guint64 t; + guint64 t = 0; c_list_for_each_entry (ac, &priv->active_connections_lst_head, active_connections_lst) { if (nm_active_connection_get_state (ac) != NM_ACTIVE_CONNECTION_STATE_ACTIVATED) |