mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-28 01:40:33 +01:00
device: initialize nm_auto variable in _ethtool_features_reset()
The compiler is often adament to warn about maybe-uninitialized. (cherry picked from commit3dd854eb1b) (cherry picked from commit471e987add)
This commit is contained in:
parent
688c67a24f
commit
4fa6001c60
1 changed files with 1 additions and 1 deletions
|
|
@ -1936,7 +1936,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(ðtool_state->features);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue