mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 00:35:06 -05:00
rtc: don't try to open rtcfile when not set
This commit is contained in:
@@ -438,8 +438,7 @@ read_coefs_from_file(void)
|
|||||||
|
|
||||||
tried_to_load_coefs = 1;
|
tried_to_load_coefs = 1;
|
||||||
|
|
||||||
in = fopen(coefs_file_name, "r");
|
if (coefs_file_name && (in = fopen(coefs_file_name, "r"))) {
|
||||||
if (in) {
|
|
||||||
if (fscanf(in, "%d%ld%lf%lf",
|
if (fscanf(in, "%d%ld%lf%lf",
|
||||||
&valid_coefs_from_file,
|
&valid_coefs_from_file,
|
||||||
&file_ref_time,
|
&file_ref_time,
|
||||||
|
|||||||
Reference in New Issue
Block a user