mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-09 04:13:33 +02:00
Fix warning on startup
When there are no errors on startup, we'd get a warning as we were copying a NULL GError
This commit is contained in:
committed by
Daniel Drake
parent
5d60894e69
commit
039c988f4b
@ -109,6 +109,9 @@ GError *fprint_manager_get_error(FprintManager *manager)
|
|||||||
{
|
{
|
||||||
FprintManagerPrivate *priv = FPRINT_MANAGER_GET_PRIVATE (manager);
|
FprintManagerPrivate *priv = FPRINT_MANAGER_GET_PRIVATE (manager);
|
||||||
|
|
||||||
|
if (priv->last_error == NULL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
return g_error_copy (priv->last_error);
|
return g_error_copy (priv->last_error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user