summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-04-03 17:46:38 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-04-03 17:46:38 +0000
commitc6ca41dab1d22400ae8bccee56968badc641a849 (patch)
treebf75b70efaa7ba95e8d609c0666a7e1119991944
parent9915986c57ea14e19c2f049dc0d06a84b2e2a87a (diff)
downloadldetect-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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hid.c b/hid.c
index 99870ad..91c22cd 100644
--- a/hid.c
+++ b/hid.c
@@ -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);
}