summaryrefslogtreecommitdiff
path: root/src/lib/eeze
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/eeze
parentbc31a55bda4dc270fac57b857069de38a05ec59c (diff)
downloadefl-c313a46b5e065ef3174af75314308647744bfe15.tar.gz
eeze: do no try to match an unknown property
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,
if (subsystem)
udev_enumerate_add_match_subsystem(en, subsystem);
- udev_enumerate_add_match_property(en, type, "1");
+ if (type)
+ udev_enumerate_add_match_property(en, type, "1");
udev_enumerate_scan_devices(en);
devs = udev_enumerate_get_list_entry(en);
udev_list_entry_foreach(cur, devs)