eeze: do no try to match an unknown property

This commit is contained in:
Boris 'billiob' Faure 2013-05-12 22:22:48 +02:00
parent bc31a55bda
commit c313a46b5e
1 changed files with 2 additions and 1 deletions

View File

@ -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)