netstar pushed a commit to branch master. http://git.enlightenment.org/apps/evisum.git/commit/?id=82eda9c7acc49aa5e0c63cc861a4b7dfa641c674
commit 82eda9c7acc49aa5e0c63cc861a4b7dfa641c674 Author: Alastair Poole <nets...@gmail.com> Date: Fri Feb 26 19:17:32 2021 +0000 sensors: fbsd, fix bug --- src/bin/system/machine/sensors.bogox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/system/machine/sensors.bogox b/src/bin/system/machine/sensors.bogox index eff3a98..77de13f 100644 --- a/src/bin/system/machine/sensors.bogox +++ b/src/bin/system/machine/sensors.bogox @@ -277,7 +277,7 @@ _power_battery_count_get(power_t *power) } } #elif defined(__FreeBSD__) || defined(__DragonFly__) - size_t len; + size_t len = sizeof(power->battery_count); if ((sysctlbyname("hw.acpi.battery.units", &power->battery_count, &len, NULL, 0)) < 0) power->battery_count = 0; --