summaryrefslogtreecommitdiff
path: root/src/lib/eeze
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eeze')
-rw-r--r--src/lib/eeze/eeze_udev_find.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eeze/eeze_udev_find.c b/src/lib/eeze/eeze_udev_find.c
index 5682a36faf..805f4e6873 100644
--- a/src/lib/eeze/eeze_udev_find.c
+++ b/src/lib/eeze/eeze_udev_find.c
@@ -319,7 +319,8 @@ eeze_udev_find_by_filter(const char *subsystem,
319 if (subsystem) 319 if (subsystem)
320 udev_enumerate_add_match_subsystem(en, subsystem); 320 udev_enumerate_add_match_subsystem(en, subsystem);
321 321
322 udev_enumerate_add_match_property(en, type, "1"); 322 if (type)
323 udev_enumerate_add_match_property(en, type, "1");
323 udev_enumerate_scan_devices(en); 324 udev_enumerate_scan_devices(en);
324 devs = udev_enumerate_get_list_entry(en); 325 devs = udev_enumerate_get_list_entry(en);
325 udev_list_entry_foreach(cur, devs) 326 udev_list_entry_foreach(cur, devs)