mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02: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:
@ -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")));
|
||||
|
||||
Reference in New Issue
Block a user