From 51f77cb525735a95f8ed35f009a30059632a39a9 Mon Sep 17 00:00:00 2001 From: Nikolas Garofil Date: Fri, 24 Jul 2009 11:43:53 +0200 Subject: [PATCH] bugfix --- src/linux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/linux.c b/src/linux.c index caa8fd04..483e547e 100644 --- a/src/linux.c +++ b/src/linux.c @@ -1796,6 +1796,7 @@ void get_battery_stuff(char *buffer, unsigned int n, const char *bat, int item) } } fclose(acpi_bat_fp[idx]); + acpi_bat_fp[idx] = NULL; } else { /* APM */ if (apm_bat_fp[idx] == NULL) {