summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-02-15 10:49:55 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-02-15 10:49:55 +0100
commit2e016b98c37edc8d01f37e0126cae901cde8c708 (patch)
tree84cf856b44c02487a5df40505fc966275f4820bc
parentcac26f0bc8c8b73796fd6da862b919b1e0a969bc (diff)
downloadsystemd-2e016b98c37edc8d01f37e0126cae901cde8c708.tar.gz
dhcp6: fix uninitialized variable in returning from client_parse_message() (#8187)
Compiler warns about this with -Werror=maybe-uninitialized. Fixes: 3bc424a3cc0bacc688ec2f4f93a5560fb4ca393b
-rw-r--r--src/libsystemd-network/sd-dhcp6-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-dhcp6-client.c b/src/libsystemd-network/sd-dhcp6-client.c
index ec3484383b..2d38e51424 100644
--- a/src/libsystemd-network/sd-dhcp6-client.c
+++ b/src/libsystemd-network/sd-dhcp6-client.c
@@ -973,7 +973,7 @@ static int client_parse_message(
lease->pd.ia_pd.lifetime_t2 = htobe32(lt_t2);
}
- return r;
+ return 0;
}
static int client_receive_reply(sd_dhcp6_client *client, DHCP6Message *reply, size_t len) {