diff options
author | Leandro Pereira <leandro@hardinfo.org> | 2011-12-30 19:43:16 -0200 |
---|---|---|
committer | Leandro Pereira <leandro@hardinfo.org> | 2011-12-30 19:43:16 -0200 |
commit | 38d3d5c271f74f0cf4512a49a36ec47bc06ad98b (patch) | |
tree | 22764e8841017dca44b545a1416ec8443a242116 /modules | |
parent | 9bf0c669435d6d307d4d678e80bd01736705bdb8 (diff) |
Fix crash when computer has two or more batteries
Diffstat (limited to 'modules')
-rw-r--r-- | modules/devices/battery.c | 2 |
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); |