summaryrefslogtreecommitdiff
path: root/src/logind-dbus.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-28 23:02:38 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-28 23:02:38 +0200
commit88bb8d215aa0f5576eb3f9c77c30cdc4b17783fe (patch)
tree26337269da1311fd536e435b7ef511aafe609066 /src/logind-dbus.c
parent72d8c4afcea592b53dcfb4d8f026cb5cb0fdb64c (diff)
logind: call udev_device_get_is_initialized() to trigger lazy loading, as a temporary work-around for broken libudev
Diffstat (limited to 'src/logind-dbus.c')
-rw-r--r--src/logind-dbus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/logind-dbus.c b/src/logind-dbus.c
index 91f30320c6..57ee2ee28d 100644
--- a/src/logind-dbus.c
+++ b/src/logind-dbus.c
@@ -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))