projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b4923e
)
sd-dhcp-server: make gcc happy
author
Tom Gundersen
<teg@jklm.no>
Sat, 12 Jul 2014 21:07:33 +0000
(23:07 +0200)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/src/libsystemd-network/sd-dhcp-server.c
b/src/libsystemd-network/sd-dhcp-server.c
index
5c32fdf
..
53cf0d7
100644
(file)
--- 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);