diff options
author | Michał Kępień <github@kempniu.pl> | 2019-03-26 17:30:53 +0100 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2019-03-28 20:27:13 -0400 |
commit | d941e2ee75211af83d943b1d03659ede908f8085 (patch) | |
tree | c2f0c12812ca90db549d398dcb4db895f98a945c /src | |
parent | Drop unused <langinfo.h>, resolves issue 167 (diff) | |
download | eudev-d941e2ee75211af83d943b1d03659ede908f8085.tar.gz eudev-d941e2ee75211af83d943b1d03659ede908f8085.tar.bz2 eudev-d941e2ee75211af83d943b1d03659ede908f8085.zip |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/libudev/libudev-device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libudev/libudev-device.c b/src/libudev/libudev-device.c index f651805fa..ac67ce846 100644 --- a/src/libudev/libudev-device.c +++ b/src/libudev/libudev-device.c @@ -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); |