From b9cdb58a1ab4a0ebda228f141e26e7fb7d33e612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 18 Dec 2020 03:26:30 +0100 Subject: [PATCH] device: Load the current finger print and not always the first print In the garbage collection code we always ended up to load the first enrolled print, and this may lead to removing from device storage prints that are actually in use. --- src/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index 0f6d19f..cce18a6 100644 --- a/src/device.c +++ b/src/device.c @@ -1471,7 +1471,7 @@ try_delete_print (FprintDevice *rdev) guint index; store.print_data_load (priv->dev, - GPOINTER_TO_UINT (fingers->data), + GPOINTER_TO_UINT (finger->data), username, &print);