summaryrefslogtreecommitdiff
path: root/battstat/acpi-linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'battstat/acpi-linux.c')
-rw-r--r--battstat/acpi-linux.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/battstat/acpi-linux.c b/battstat/acpi-linux.c
index 2fd9f8e7..1af601c4 100644
--- a/battstat/acpi-linux.c
+++ b/battstat/acpi-linux.c
@@ -350,6 +350,11 @@ gboolean acpi_process_event(struct acpi_info * acpiinfo)
buffer=g_string_new(NULL);
g_io_channel_read_line_string ( acpiinfo->channel,buffer,&i,&gerror);
+ if (gerror != NULL) {
+ g_warning ("%s", gerror->message);
+ g_error_free (gerror);
+ }
+
gboolean result;
evt = parse_acpi_event(buffer);