netstar pushed a commit to branch master. http://git.enlightenment.org/apps/evisum.git/commit/?id=37cb378cf94be64903da2eb19a9bf413e639744d
commit 37cb378cf94be64903da2eb19a9bf413e639744d Author: Alastair Poole <nets...@gmail.com> Date: Sun Sep 1 14:04:40 2019 +0100 Make sure we exit this hole --- src/system.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/system.c b/src/system.c index 2e7451b..c79c803 100644 --- a/src/system.c +++ b/src/system.c @@ -895,7 +895,11 @@ _battery_state_get(power_t *power, int *mib) } closedir(dir); - if (!naming) continue; + if (!naming) + { + i++; + continue; + } snprintf(path, sizeof(path), "/sys/class/power_supply/%s/%s_full", power->battery_names[i], naming); buf = Fcontents(path); --