diff options
author | Francis Hart <francis@kuvacode.com> | 2022-10-17 11:41:52 +0300 |
---|---|---|
committer | Nathan Hjelm <hjelmn@google.com> | 2023-01-09 20:47:02 -0700 |
commit | 565bb18011d72d4aec2b24c11bba27c783863930 (patch) | |
tree | a51a4d3dff33de2429c42027f099177d902b03fd /.private | |
parent | b09074ea77cf39da31554cfc816d76b837fb26b7 (diff) | |
download | libusb-565bb18011d72d4aec2b24c11bba27c783863930.tar.gz |
Fix setting log level before libusb_init()
The header docs state its possible to set a default log level before
calling libusb_init(), and that this log level will be used for all
contexts created after (to quote):
"Note that libusb_set_option(NULL, ...) is special, and adds
an option to a list of default options for new contexts."
This updates the logic inside libusb_init() to ensure this
behaviour is followed.
Fixes #1207
Signed-off-by: Francis Hart <francis@kuvacode.com>
Signed-off-by: Nathan Hjelm <hjelmn@google.com>
Diffstat (limited to '.private')
0 files changed, 0 insertions, 0 deletions