Apply 1 suggestion(s) to 1 file(s)

Co-authored-by: Marco Trevisan <mail@3v1n0.net>
This commit is contained in:
Abhinav Baid 2024-06-17 21:34:32 +00:00 committed by Xelef2000
parent 01e02d1e49
commit 7efd7fe72c

View file

@ -538,7 +538,7 @@ fp_context_enumerate (FpContext *context)
const gchar * sysfs = g_udev_device_get_sysfs_path (matched_misc->data);
if (!sysfs)
continue;
if (strstr (sysfs, entry->misc_name))
if (g_str_has_suffix (sysfs, entry->misc_name))
break;
}
/* If match was not found exit */