mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-05 12:40:16 +01:00
manager: initialize a potentially uninitialized variable
(cherry picked from commit a82e9083c1)
This commit is contained in:
parent
45f7d05629
commit
03e1a2559d
1 changed files with 1 additions and 1 deletions
|
|
@ -6244,7 +6244,7 @@ nm_manager_write_device_state (NMManager *self, NMDevice *device)
|
|||
|
||||
managed = nm_device_get_managed (device, FALSE);
|
||||
if (managed) {
|
||||
NMSettingsConnection *sett_conn;
|
||||
NMSettingsConnection *sett_conn = NULL;
|
||||
|
||||
if (nm_device_get_state (device) <= NM_DEVICE_STATE_ACTIVATED)
|
||||
sett_conn = nm_device_get_settings_connection (device);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue