mirror of
https://github.com/systemd/systemd.git
synced 2025-01-13 17:18:18 +03:00
sd-dhcp-server: make gcc happy
It complains about optoffset possibly being uninitialized. It is wrong, but let's just initialize it.
This commit is contained in:
parent
4b4923e654
commit
1231c4d238
@ -362,7 +362,7 @@ int dhcp_server_send_packet(sd_dhcp_server *server,
|
||||
static int server_message_init(sd_dhcp_server *server, DHCPPacket **ret,
|
||||
uint8_t type, size_t *_optoffset, DHCPRequest *req) {
|
||||
_cleanup_free_ DHCPPacket *packet = NULL;
|
||||
size_t optoffset;
|
||||
size_t optoffset = 0;
|
||||
int r;
|
||||
|
||||
assert(server);
|
||||
|
Loading…
Reference in New Issue
Block a user