summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorBoris 'billiob' Faure <billiob@gmail.com>2013-05-12 22:22:48 +0200
committerBoris 'billiob' Faure <billiob@gmail.com>2013-05-12 22:22:48 +0200
commitc313a46b5e065ef3174af75314308647744bfe15 (patch)
tree9fc48a86d8814f63990efa1a03e0905ad5a52896 /src/lib
parentbc31a55bda4dc270fac57b857069de38a05ec59c (diff)
eeze: do no try to match an unknown property
Diffstat (limited to 'src/lib')
-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)