plugins: rtc: follow-up to bc8118d

In save() RTC, ensure the RTC_FILE option is actually enabled.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2025-02-10 10:43:29 +01:00
parent 003faae9e9
commit 4d4fc10d57
+3
View File
@@ -139,6 +139,9 @@ static void file_save(void *arg)
int rc = 0;
FILE *fp;
if (!rtc_file)
return;
fp = fopen(rtc_file, "w");
if (!fp) {
logit(LOG_WARNING, "Failed saving system clock to %s, code %d: %s",