device: initialize nm_auto variable in _ethtool_features_reset()

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

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

View file

@ -2095,7 +2095,7 @@ _prop_get_x_generate_mac_address_mask(NMDevice * self,
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);