mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-28 02:50:36 +01:00
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:
parent
aadf0fb64f
commit
471e987add
1 changed files with 1 additions and 1 deletions
|
|
@ -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(ðtool_state->features);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue