diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-10-20 22:30:13 +0200 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-10-20 22:30:13 +0200 |
commit | e12d48a661cee3482c038038be1eede5099fec48 (patch) | |
tree | cb92e88dda000761c5c596c6fb765978467e4366 | |
parent | 7429c22201ed0b78a4bcd27ba3d29dcda2c6509c (diff) |
Fix wrong strncmp replacement
Fixes 4c66eb6d4cbd
-rw-r--r-- | linux/Battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/Battery.c b/linux/Battery.c index 956a7397..4eab24dd 100644 --- a/linux/Battery.c +++ b/linux/Battery.c @@ -53,7 +53,7 @@ static unsigned long int parseBatInfo(const char *fileName, const unsigned short if (!dirEntry) break; char* entryName = dirEntry->d_name; - if (String_startsWith(entryName, "BAT")) + if (!String_startsWith(entryName, "BAT")) continue; batteries[nBatteries] = xStrdup(entryName); nBatteries++; |