diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2009-04-03 17:46:38 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2009-04-03 17:46:38 +0000 |
commit | c6ca41dab1d22400ae8bccee56968badc641a849 (patch) | |
tree | bf75b70efaa7ba95e8d609c0666a7e1119991944 | |
parent | 9915986c57ea14e19c2f049dc0d06a84b2e2a87a (diff) | |
download | ldetect-c6ca41dab1d22400ae8bccee56968badc641a849.tar ldetect-c6ca41dab1d22400ae8bccee56968badc641a849.tar.gz ldetect-c6ca41dab1d22400ae8bccee56968badc641a849.tar.bz2 ldetect-c6ca41dab1d22400ae8bccee56968badc641a849.tar.xz ldetect-c6ca41dab1d22400ae8bccee56968badc641a849.zip |
Skip hid entries with NULL module name (ie no quirk needed)
-rw-r--r-- | hid.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -111,9 +111,10 @@ static void parse_device(struct hid_entries *entries, const char *dev) device_name = strdup("HID Device"); modname = modalias_resolve_module(modalias); - DEBUG("%s: module name is [%s]\n", HID_BUS_NAME, modname); - add_entry(entries, device_name, modname); free(modalias); + DEBUG("%s: module name is [%s]\n", HID_BUS_NAME, modname); + if (modname != NULL) + add_entry(entries, device_name, modname); } |