summaryrefslogtreecommitdiffstats
path: root/core/device.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/device.c')
-rw-r--r--core/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/device.c b/core/device.c
index dde758dc8..86c30dbd9 100644
--- a/core/device.c
+++ b/core/device.c
@@ -193,7 +193,7 @@ static void match_id(void *_dc, const char *model, uint32_t deviceid,
if (dc->deviceid != deviceid)
return;
- if (strcmp(dc->model, model))
+ if (!model || !dc->model || strcmp(dc->model, model))
return;
if (serial && !dc->serial)