From: Miroslav Lichvar Date: Mon, 13 Jun 2011 16:17:33 +0000 (+0200) Subject: Don't use uninitialized values X-Git-Tag: 1.26-pre1~14 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=a5f63180fc5b55f44cb616cab7516ecfc685463d;p=thirdparty%2Fchrony.git Don't use uninitialized values --- diff --git a/client.c b/client.c index 77bdd425..63566844 100644 --- a/client.c +++ b/client.c @@ -1082,12 +1082,11 @@ process_cmd_delete(CMD_Request *msg, char *line) fprintf(stderr, "Could not get address for hostname\n"); ok = 0; } else { + UTI_IPHostToNetwork(&address, &msg->data.del_source.ip_addr); ok = 1; } } - UTI_IPHostToNetwork(&address, &msg->data.del_source.ip_addr); - return ok; } diff --git a/manual.c b/manual.c index 93a9617f..c3f77977 100644 --- a/manual.c +++ b/manual.c @@ -145,6 +145,8 @@ estimate_and_set_system(struct timeval *now, int offset_provided, double offset, } b1 = freq = 0.0; found_freq = 0; + agos[0] = 0.0; + offsets[0] = b0; } if (offset_provided) {