From 1231c4d238844e77018caf5b5852f01d96373c47 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Sat, 12 Jul 2014 23:07:33 +0200 Subject: sd-dhcp-server: make gcc happy It complains about optoffset possibly being uninitialized. It is wrong, but let's just initialize it. --- src/libsystemd-network/sd-dhcp-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libsystemd-network/sd-dhcp-server.c b/src/libsystemd-network/sd-dhcp-server.c index 5c32fdfffa..53cf0d7e46 100644 --- a/src/libsystemd-network/sd-dhcp-server.c +++ b/src/libsystemd-network/sd-dhcp-server.c @@ -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); -- cgit v1.2.3-54-g00ecf