mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
tests: Fix possible crash in fprintd-verify
https://bugs.freedesktop.org/show_bug.cgi?id=75111
This commit is contained in:
@ -99,8 +99,10 @@ static void find_finger(DBusGProxy *dev, const char *username)
|
||||
g_print(" - #%d: %s\n", i, fingers[i]);
|
||||
}
|
||||
|
||||
if (strcmp (finger_name, "any") == 0)
|
||||
finger_name = fingers[0];
|
||||
if (strcmp (finger_name, "any") == 0) {
|
||||
g_free (finger_name);
|
||||
finger_name = g_strdup (fingers[0]);
|
||||
}
|
||||
|
||||
g_strfreev (fingers);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user