billiob pushed a commit to branch master.
commit c313a46b5e065ef3174af75314308647744bfe15
Author: Boris 'billiob' Faure <[email protected]>
Date: Sun May 12 22:22:48 2013 +0200
eeze: do no try to match an unknown property
---
src/lib/eeze/eeze_udev_find.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/lib/eeze/eeze_udev_find.c b/src/lib/eeze/eeze_udev_find.c
index 5682a36..805f4e6 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)
--
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and
their applications. This 200-page book is written by three acclaimed
leaders in the field. The early access version is available now.
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may