mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-25 21:25:59 +07:00
logind: call udev_device_get_is_initialized() to trigger lazy loading, as a temporary work-around for broken libudev
This commit is contained in:
parent
72d8c4afce
commit
88bb8d215a
@ -542,6 +542,8 @@ static bool device_has_tag(struct udev_device *d, const char *tag) {
|
||||
assert(d);
|
||||
assert(tag);
|
||||
|
||||
udev_device_get_is_initialized(d);
|
||||
|
||||
first = udev_device_get_tags_list_entry(d);
|
||||
udev_list_entry_foreach(item, first)
|
||||
if (streq(udev_list_entry_get_name(item), tag))
|
||||
|
Loading…
Reference in New Issue
Block a user