mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-05 09:58:06 +02:00
lib: Fix crash on uninitialized variant
Initialize the GVariant* pointers, so that they aren't uninitialized when jumping to "out:" and unref'ing them. https://bugs.freedesktop.org/show_bug.cgi?id=89476 https://bugs.debian.org/774546 https://bugs.launchpad.net/ubuntu-mate/+bug/1428337
This commit is contained in:
parent
f3706d7a29
commit
2510148b16
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue