client: initialize variables in new local command
This commit is contained in:
parent
b252c57a22
commit
942b52a3ca
1 changed files with 2 additions and 2 deletions
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;
|
||||||
|
|
Loading…
Reference in a new issue