mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-26 09:40:22 +01: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 commit b2620e798a)
This commit is contained in:
parent
1bb93b7289
commit
972b0db460
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