From a5f63180fc5b55f44cb616cab7516ecfc685463d Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 13 Jun 2011 18:17:33 +0200 Subject: [PATCH] Don't use uninitialized values --- client.c | 3 +-- manual.c | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client.c b/client.c index 77bdd42..6356684 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 93a9617..c3f7797 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) {