mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-10 07:59:03 +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);
|
strncpy(last_battery_str[idx], "AC", 64);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
fclose(acpi_bat_fp[idx]);
|
||||||
} else {
|
} else {
|
||||||
/* APM */
|
/* APM */
|
||||||
if (apm_bat_fp[idx] == NULL) {
|
if (apm_bat_fp[idx] == NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user