device: initialize nm_auto variable in _ethtool_features_reset()

The compiler is often adament to warn about maybe-uninitialized.

(cherry picked from commit 3dd854eb1b)
This commit is contained in:
Thomas Haller 2022-01-21 10:47:31 +01:00
parent aadf0fb64f
commit 471e987add
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -1967,7 +1967,7 @@ _prop_get_x_generate_mac_address_mask(NMDevice *self, NMConnection *connection,
static void
_ethtool_features_reset(NMDevice *self, NMPlatform *platform, EthtoolState *ethtool_state)
{
gs_free NMEthtoolFeatureStates *features;
gs_free NMEthtoolFeatureStates *features = NULL;
features = g_steal_pointer(&ethtool_state->features);