]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
client: initialize variables in new local command
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 11 Apr 2016 06:28:45 +0000 (08:28 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 11 Apr 2016 06:28:45 +0000 (08:28 +0200)
client.c

index bd8c153e0ce30404e863f8ed85553d476cc851dd..516094b6b827634fb210824873a92da4402a6ab6 100644 (file)
--- 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;