mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-03-01 00:00:00 +07:00
src/libudev/libudev-device.c: properly handle empty tag list
See: https://github.com/gentoo/eudev/pull/171 Signed-off-by: Michał Kępień <github@kempniu.pl> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
parent
34b2037d37
commit
d941e2ee75
@ -1392,6 +1392,8 @@ _public_ struct udev_list_entry *udev_device_get_properties_list_entry(struct ud
|
||||
udev_list_entry_foreach(list_entry, udev_device_get_tags_list_entry(udev_device))
|
||||
l = strpcpyl(&s, l, udev_list_entry_get_name(list_entry), ":", NULL);
|
||||
udev_device_add_property_internal(udev_device, "TAGS", tags);
|
||||
} else {
|
||||
udev_device_add_property_internal(udev_device, "TAGS", NULL);
|
||||
}
|
||||
}
|
||||
return udev_list_get_entry(&udev_device->properties_list);
|
||||
|
Loading…
Reference in New Issue
Block a user