Skip to content

Commit

Permalink
sd-dhcp6-client: make gcc happy
Browse files Browse the repository at this point in the history
It complains about {max,init}_retransmit_time possibly being
uninitialized. It is wrong, but let's just initialize it.
  • Loading branch information
teg committed Jul 14, 2014
1 parent 3be1d7e commit 4b4923e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsystemd-network/sd-dhcp6-client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 4b4923e

Please sign in to comment.