1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 02:55:12 +00:00

Fix unclosed file in get_battery_stuff

This commit is contained in:
Nikolas Garofil 2009-07-24 11:09:00 +02:00
parent 922db9af82
commit feedc8e7fa

View File

@ -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) {