virtual-device: Ensure we've an error before dereferencing it

This commit is contained in:
Marco Trevisan (Treviño) 2021-01-26 05:27:44 +01:00
parent 31541edc58
commit c4069065f9

View file

@ -513,7 +513,7 @@ dev_verify (FpDevice *dev)
NULL); NULL);
} }
} }
else else if (error)
{ {
g_debug ("Virtual device scan failed with error: %s", error->message); g_debug ("Virtual device scan failed with error: %s", error->message);
} }