summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-07-12 23:07:33 +0200
committerTom Gundersen <teg@jklm.no>2014-07-14 16:49:41 +0200
commit4b4923e65423e60d755841b5b264730e8f3deab3 (patch)
tree72ac4753b2ab9e35f338a21af3088f8c070b99d4
parent3be1d7e0c5bf60658d34eb6311d4e77c6803578c (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.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 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];