mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-01-06 02:40:18 +01:00
delete: Clear the error in case we ignore it
If we get a `NoEnrolledPrints` error during delete, we don't consider it an hard error and in such case we proceed to releasing the device, but without clearing the previously set error first.
This commit is contained in:
parent
ba7a45d3f8
commit
1ecae1d014
1 changed files with 1 additions and 0 deletions
|
|
@ -66,6 +66,7 @@ static void delete_fingerprints(DBusGProxy *dev, const char *username)
|
|||
exit (1);
|
||||
} else {
|
||||
g_print ("No fingerprints to delete on %s\n", g_value_get_string (g_hash_table_lookup (props, "name")));
|
||||
g_clear_error (&error);
|
||||
}
|
||||
} else {
|
||||
g_print ("Fingerprints deleted on %s\n", g_value_get_string (g_hash_table_lookup (props, "name")));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue