Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Vasily Khoruzhick
libfprint
Commits
9608ab37
Commit
9608ab37
authored
Aug 18, 2010
by
Bastien Nocera
Browse files
Don't crash when no devices are present
parent
73561989
Changes
1
Hide whitespace changes
Inline
Side-by-side
libfprint/core.c
View file @
9608ab37
...
...
@@ -464,10 +464,12 @@ static struct fp_driver *find_supporting_driver(libusb_device *udev,
}
}
while
((
elem
=
g_slist_next
(
elem
)));
fp_dbg
(
"selected driver %s supports USB device %04x:%04x"
,
best_drv
->
name
,
dsc
.
idVendor
,
dsc
.
idProduct
);
*
devtype
=
best_devtype
;
*
usb_id
=
best_usb_id
;
if
(
best_drv
!=
NULL
)
{
fp_dbg
(
"selected driver %s supports USB device %04x:%04x"
,
best_drv
->
name
,
dsc
.
idVendor
,
dsc
.
idProduct
);
*
devtype
=
best_devtype
;
*
usb_id
=
best_usb_id
;
}
return
best_drv
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment