Commit 73ed60a6 authored by Bastien Nocera's avatar Bastien Nocera

tests: Fix possible crash in fprintd-verify

https://bugs.freedesktop.org/show_bug.cgi?id=75111
parent d7e326a7
......@@ -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);
}
......
Markdown is supported
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