summaryrefslogtreecommitdiff
path: root/modules/devices/battery.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2011-12-30 19:43:16 -0200
committerLeandro Pereira <leandro@hardinfo.org>2011-12-30 19:43:16 -0200
commit38d3d5c271f74f0cf4512a49a36ec47bc06ad98b (patch)
tree22764e8841017dca44b545a1416ec8443a242116 /modules/devices/battery.c
parent9bf0c669435d6d307d4d678e80bd01736705bdb8 (diff)
Fix crash when computer has two or more batteries
Diffstat (limited to 'modules/devices/battery.c')
-rw-r--r--modules/devices/battery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/devices/battery.c b/modules/devices/battery.c
index 58ec0d0d..53fca740 100644
--- a/modules/devices/battery.c
+++ b/modules/devices/battery.c
@@ -208,7 +208,7 @@ __scan_battery_acpi(void)
g_free(manufacturer);
present = capacity = technology = type = \
- model = serial = state = remaining = rate = NULL;
+ model = serial = state = remaining = rate = manufacturer = NULL;
}
g_dir_close(acpi);