From 87c3b9c5bafd091afc2105ad9c4fad444743d201 Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Mon, 4 May 2020 14:32:51 +0200 Subject: [PATCH] upekts: Fix possible NULL pointer access Reported by scan-build. --- libfprint/drivers/upekts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfprint/drivers/upekts.c b/libfprint/drivers/upekts.c index ec11d07..81dcc73 100644 --- a/libfprint/drivers/upekts.c +++ b/libfprint/drivers/upekts.c @@ -1259,7 +1259,7 @@ do_verify_stop (FpDevice *dev, FpiMatchResult res, GError *error) FpiSsm *ssm = deinitsm_new (dev, data); /* Report the error immediately if possible, otherwise delay it. */ - if (!error && error->domain != FP_DEVICE_RETRY) + if (error && error->domain != FP_DEVICE_RETRY) fpi_device_verify_report (dev, res, NULL, error); else data->error = error;