policy: fix unitialized variable

The variable 'change' may be used uninitialized.

Fixes: 7acc66699a ('policy: always reset retries when unblocking children or ports')
This commit is contained in:
Íñigo Huguet
2025-02-19 08:55:04 +01:00
committed by Íñigo Huguet
parent 42b95fad79
commit af6aca3527

View File

@@ -1941,7 +1941,7 @@ unblock_autoconnect_for_ports(NMPolicy *self,
{
NMPolicyPrivate *priv = NM_POLICY_GET_PRIVATE(self);
NMSettingsConnection *const *connections;
gboolean changed;
gboolean changed = FALSE;
guint i;
_LOGT(LOGD_CORE,