Commit 039c988f authored by Bastien Nocera's avatar Bastien Nocera Committed by Daniel Drake
Browse files

Fix warning on startup

When there are no errors on startup, we'd get a warning
as we were copying a NULL GError
parent 5d60894e
......@@ -109,6 +109,9 @@ GError *fprint_manager_get_error(FprintManager *manager)
FprintManagerPrivate *priv = FPRINT_MANAGER_GET_PRIVATE (manager);
if (priv->last_error == NULL)
return NULL;
return g_error_copy (priv->last_error);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment