From ea2a26bd5786cbd68ecba27c89ae8ecad5b349ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Thu, 17 Aug 2023 16:13:05 +0800 Subject: [PATCH] Battery (Linux): fix build --- src/modules/battery/battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/battery/battery.c b/src/modules/battery/battery.c index 2161be629..4ad292943 100644 --- a/src/modules/battery/battery.c +++ b/src/modules/battery/battery.c @@ -163,7 +163,7 @@ void ffParseBatteryJsonObject(FFBatteryOptions* options, yyjson_val* module) #ifdef __linux__ if (ffStrEqualsIgnCase(key, "dir")) { - ffStrbufSetS(&options.dir, yyjson_get_str(val)); + ffStrbufSetS(&options->dir, yyjson_get_str(val)); continue; } #endif