diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2011-06-28 20:57:05 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2011-06-28 20:57:05 +0200 |
commit | 2bbafbfd4f18ab68702ee514f806ff5b917821c5 (patch) | |
tree | 2c17955d4e28b118bcbaccc2a20b34bd254c98c5 /libudev | |
parent | 15328d84d29a5080a49096aee4689ef50c8c2b9e (diff) |
libudev: device - fix udev_device_get_tags_list_entry() to always load database
Diffstat (limited to 'libudev')
-rw-r--r-- | libudev/libudev-device.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libudev/libudev-device.c b/libudev/libudev-device.c index 8289acf3a9..1ac0760f9e 100644 --- a/libudev/libudev-device.c +++ b/libudev/libudev-device.c @@ -1641,6 +1641,8 @@ UDEV_EXPORT struct udev_list_entry *udev_device_get_tags_list_entry(struct udev_ { if (udev_device == NULL) return NULL; + if (!udev_device->info_loaded) + udev_device_read_db(udev_device, NULL); return udev_list_get_entry(&udev_device->tags_list); } |