upekts: Fix possible NULL pointer access
Reported by scan-build.
This commit is contained in:
parent
0a08a6a7c0
commit
87c3b9c5ba
1 changed files with 1 additions and 1 deletions
|
@ -1259,7 +1259,7 @@ do_verify_stop (FpDevice *dev, FpiMatchResult res, GError *error)
|
||||||
FpiSsm *ssm = deinitsm_new (dev, data);
|
FpiSsm *ssm = deinitsm_new (dev, data);
|
||||||
|
|
||||||
/* Report the error immediately if possible, otherwise delay it. */
|
/* 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);
|
fpi_device_verify_report (dev, res, NULL, error);
|
||||||
else
|
else
|
||||||
data->error = error;
|
data->error = error;
|
||||||
|
|
Loading…
Reference in a new issue