mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 22:05:06 -05:00
client: initialize variables in new local command
This commit is contained in:
4
client.c
4
client.c
@@ -719,8 +719,8 @@ process_cmd_burst(CMD_Request *msg, char *line)
|
|||||||
static int
|
static int
|
||||||
process_cmd_local(CMD_Request *msg, char *line)
|
process_cmd_local(CMD_Request *msg, char *line)
|
||||||
{
|
{
|
||||||
int on_off, stratum, orphan;
|
int on_off, stratum = 0, orphan = 0;
|
||||||
double distance;
|
double distance = 0.0;
|
||||||
|
|
||||||
if (!strcmp(line, "off")) {
|
if (!strcmp(line, "off")) {
|
||||||
on_off = 0;
|
on_off = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user