mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-05 21:07:52 +00:00
Fix unclosed file in get_battery_stuff
This commit is contained in:
parent
922db9af82
commit
feedc8e7fa
@ -1795,6 +1795,7 @@ void get_battery_stuff(char *buffer, unsigned int n, const char *bat, int item)
|
||||
strncpy(last_battery_str[idx], "AC", 64);
|
||||
}
|
||||
}
|
||||
fclose(acpi_bat_fp[idx]);
|
||||
} else {
|
||||
/* APM */
|
||||
if (apm_bat_fp[idx] == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user