From c4069065f99b99e66549b30646c896900a7b32a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 26 Jan 2021 05:27:44 +0100 Subject: [PATCH] virtual-device: Ensure we've an error before dereferencing it --- libfprint/drivers/virtual-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfprint/drivers/virtual-device.c b/libfprint/drivers/virtual-device.c index 9da1f77..f7767a6 100644 --- a/libfprint/drivers/virtual-device.c +++ b/libfprint/drivers/virtual-device.c @@ -513,7 +513,7 @@ dev_verify (FpDevice *dev) NULL); } } - else + else if (error) { g_debug ("Virtual device scan failed with error: %s", error->message); }