From 74810a847264f0c05af42c70b2366e386f807590 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Tue, 8 Dec 2020 13:33:30 +0100 Subject: [PATCH] image: Fix warning about uninitialized variable The variable is only initialized later in the function. This is harmless, as there is no return, but it causes a warning due to the automatic free. --- libfprint/fp-image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfprint/fp-image.c b/libfprint/fp-image.c index c2c9742..51732c1 100644 --- a/libfprint/fp-image.c +++ b/libfprint/fp-image.c @@ -281,7 +281,7 @@ fp_image_detect_minutiae_thread_func (GTask *task, gint map_w, map_h; gint bw, bh, bd; gint r; - g_autofree LFSPARMS *lfsparms; + g_autofree LFSPARMS *lfsparms = NULL; /* Normalize the image first */ if (data->flags & FPI_IMAGE_H_FLIPPED)