sources: don't print NULL string to dump file
For reference clocks, which don't have a name, print "." instead of
NULL.
Fixes: f8610d69f0
("sources: improve handling of dump files and their format")
This commit is contained in:
parent
754097944b
commit
3e55fe6919
1 changed files with 1 additions and 1 deletions
|
@ -1368,7 +1368,7 @@ save_source(SRC_Instance inst)
|
|||
if (!f)
|
||||
return;
|
||||
|
||||
ntp_name = inst->type == SRC_NTP ? NSR_GetName(inst->ip_addr) : NULL;
|
||||
ntp_name = inst->type == SRC_NTP ? NSR_GetName(inst->ip_addr) : ".";
|
||||
|
||||
if (fprintf(f, "%s%s\n%d %o %d %d %d\n",
|
||||
DUMP_IDENTIFIER, ntp_name, inst->authenticated,
|
||||
|
|
Loading…
Reference in a new issue