From 0d28b301048d0c926b3b936e3aa271a231a8fde1 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 18 Jul 2016 09:24:03 +0100 Subject: [PATCH] trivial: Fix a couple of compiler warnings --- src/fu-provider-dell.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fu-provider-dell.c b/src/fu-provider-dell.c index 610c0407c..32c3548ec 100644 --- a/src/fu-provider-dell.c +++ b/src/fu-provider-dell.c @@ -346,8 +346,8 @@ fu_provider_dell_get_res (FuProviderDell *provider_dell, static gboolean fu_provider_dell_detect_dock (FuProviderDell *provider_dell, guint32 *location) { - g_autofree struct dock_count_in *count_args; - g_autofree struct dock_count_out *count_out; + g_autofree struct dock_count_in *count_args = NULL; + g_autofree struct dock_count_out *count_out = NULL; /* look up dock count */ count_args = g_malloc0 (sizeof(struct dock_count_in)); @@ -811,8 +811,8 @@ fu_provider_dell_detect_tpm (FuProvider *provider, GError **error) g_autofree gchar *tpm_id_alt = NULL; g_autofree gchar *tpm_id = NULL; g_autofree gchar *version_str = NULL; - g_autofree guint32 *args; - g_autofree struct tpm_status *out; + g_autofree guint32 *args = NULL; + g_autofree struct tpm_status *out = NULL; g_autoptr(FuDevice) dev_alt = NULL; g_autoptr(FuDevice) dev = NULL;