diff options
author | Tom Gundersen <teg@jklm.no> | 2014-07-12 23:07:33 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-07-14 16:49:41 +0200 |
commit | 4b4923e65423e60d755841b5b264730e8f3deab3 (patch) | |
tree | 72ac4753b2ab9e35f338a21af3088f8c070b99d4 | |
parent | 3be1d7e0c5bf60658d34eb6311d4e77c6803578c (diff) |
sd-dhcp6-client: make gcc happy
It complains about {max,init}_retransmit_time possibly being
uninitialized. It is wrong, but let's just initialize it.
-rw-r--r-- | src/libsystemd-network/sd-dhcp6-client.c | 2 |
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 a83778e938..4f60578bc3 100644 --- a/src/libsystemd-network/sd-dhcp6-client.c +++ b/src/libsystemd-network/sd-dhcp6-client.c @@ -387,7 +387,7 @@ static int client_timeout_resend(sd_event_source *s, uint64_t usec, void *userdata) { int r = 0; sd_dhcp6_client *client = userdata; - usec_t time_now, init_retransmit_time, max_retransmit_time; + usec_t time_now, init_retransmit_time = 0, max_retransmit_time = 0; usec_t max_retransmit_duration = 0; uint8_t max_retransmit_count = 0; char time_string[FORMAT_TIMESPAN_MAX]; |