mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-06-17 03:18:32 +02:00
n-dhcp4: fix uninitialized variable
Properly initialize 'overload' when the space in the file section ends. shared/n-dhcp4/src/n-dhcp4-outgoing.c: In function ‘n_dhcp4_outgoing_append’: shared/n-dhcp4/src/n-dhcp4-outgoing.c:198:17: error: ‘overload’ may be used uninitialized in this function [-Werror=maybe-uninitialized] (cherry picked from commitb2620e798a) (cherry picked from commit972b0db460)
This commit is contained in:
parent
f7b9d06306
commit
ef3c1a1602
1 changed files with 1 additions and 0 deletions
|
|
@ -277,6 +277,7 @@ int n_dhcp4_outgoing_append(NDhcp4Outgoing *outgoing,
|
|||
return 0;
|
||||
}
|
||||
|
||||
overload = outgoing->overload;
|
||||
if (overload & N_DHCP4_OVERLOAD_SNAME)
|
||||
outgoing->i_message = offsetof(NDhcp4Message, sname);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue