Debian Codegraph @

debian/patches/allow-zero-usb-devices

raw symbols SCIP
1 Description: Fix behaviour if no USB devices are present
2 Author: Simon Richter <[email protected]>
3 Last-Update: 2023-12-16
4
5 --- librevisa-0.0.20130812.orig/src/usb/usb_resource_creator.cpp
6 +++ librevisa-0.0.20130812/src/usb/usb_resource_creator.cpp
7 @@ -59,11 +59,15 @@ resource *usb_resource::creator::create(
8 }
9
10 void usb_resource::creator::find(findlist &list) const
11 +try
12 {
13 create_or_find_args args;
14 args.find = &list;
15 create_or_find(FIND, args);
16 }
17 +catch(exception &)
18 +{
19 +}
20
21 resource *usb_resource::creator::create_or_find(
22 create_or_find_mode mode,