From 942b52a3ca58e066c27b7a1926631eb422e068c4 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Mon, 11 Apr 2016 08:28:45 +0200 Subject: [PATCH] client: initialize variables in new local command --- client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.c b/client.c index bd8c153..516094b 100644 --- a/client.c +++ b/client.c @@ -719,8 +719,8 @@ process_cmd_burst(CMD_Request *msg, char *line) static int process_cmd_local(CMD_Request *msg, char *line) { - int on_off, stratum, orphan; - double distance; + int on_off, stratum = 0, orphan = 0; + double distance = 0.0; if (!strcmp(line, "off")) { on_off = 0;