diff -upr upower-0.99.2-orig/libupower-glib/up-device.c upower-0.99.2/libupower-glib/up-device.c --- upower-0.99.2-orig/libupower-glib/up-device.c 2014-05-20 14:24:12.000000000 +0200 +++ upower-0.99.2/libupower-glib/up-device.c 2015-03-03 14:39:46.479671182 +0100 @@ -422,7 +422,7 @@ GPtrArray * up_device_get_history_sync (UpDevice *device, const gchar *type, guint timespec, guint resolution, GCancellable *cancellable, GError **error) { GError *error_local = NULL; - GVariant *gva; + GVariant *gva = NULL; guint i; GPtrArray *array = NULL; gboolean ret; @@ -502,7 +502,7 @@ GPtrArray * up_device_get_statistics_sync (UpDevice *device, const gchar *type, GCancellable *cancellable, GError **error) { GError *error_local = NULL; - GVariant *gva; + GVariant *gva = NULL; guint i; GPtrArray *array = NULL; gboolean ret;