From d763f8f41ae0f8ae361c25f614449ac50a0ea42b Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Wed, 15 Sep 2021 15:54:25 +0200 Subject: [PATCH] elanmoc: Fix warning Really, it shouldn't matter, as there is no return. But adding the NULL initializer does not harm either. --- libfprint/drivers/elanmoc/elanmoc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfprint/drivers/elanmoc/elanmoc.c b/libfprint/drivers/elanmoc/elanmoc.c index 447182f..aef386c 100644 --- a/libfprint/drivers/elanmoc/elanmoc.c +++ b/libfprint/drivers/elanmoc/elanmoc.c @@ -806,7 +806,7 @@ elanmoc_enroll (FpDevice *device) FpPrint *print = NULL; GVariant *data = NULL; GVariant *uid = NULL; - g_autofree gchar *user_id; + g_autofree gchar *user_id = NULL; gsize user_id_len; guint8 *userdata = g_malloc0 (ELAN_USERDATE_SIZE);