mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 03:20:18 +01:00
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: 6f3ae8a563 ('core: in periodic_update_active_connection_timestamps() use same timestamp')
This commit is contained in:
parent
aeb81183de
commit
462877084f
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue