sd-dhcp-server: make gcc happy
authorTom Gundersen <teg@jklm.no>
Sat, 12 Jul 2014 21:07:33 +0000 (23:07 +0200)
committerTom Gundersen <teg@jklm.no>
Mon, 14 Jul 2014 14:49:41 +0000 (16:49 +0200)
It complains about optoffset possibly being uninitialized. It is wrong,
but let's just initialize it.

src/libsystemd-network/sd-dhcp-server.c

index 5c32fdf..53cf0d7 100644 (file)
@@ -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);