Don't use uninitialized values
This commit is contained in:
parent
934d4e04b5
commit
a5f63180fc
2 changed files with 3 additions and 2 deletions
3
client.c
3
client.c
|
@ -1082,12 +1082,11 @@ process_cmd_delete(CMD_Request *msg, char *line)
|
||||||
fprintf(stderr, "Could not get address for hostname\n");
|
fprintf(stderr, "Could not get address for hostname\n");
|
||||||
ok = 0;
|
ok = 0;
|
||||||
} else {
|
} else {
|
||||||
|
UTI_IPHostToNetwork(&address, &msg->data.del_source.ip_addr);
|
||||||
ok = 1;
|
ok = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UTI_IPHostToNetwork(&address, &msg->data.del_source.ip_addr);
|
|
||||||
|
|
||||||
return ok;
|
return ok;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
2
manual.c
2
manual.c
|
@ -145,6 +145,8 @@ estimate_and_set_system(struct timeval *now, int offset_provided, double offset,
|
||||||
}
|
}
|
||||||
b1 = freq = 0.0;
|
b1 = freq = 0.0;
|
||||||
found_freq = 0;
|
found_freq = 0;
|
||||||
|
agos[0] = 0.0;
|
||||||
|
offsets[0] = b0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (offset_provided) {
|
if (offset_provided) {
|
||||||
|
|
Loading…
Reference in a new issue