Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers/libusb1.c: nut_libusb_open(): do not keep Bus/Device/BusPort… #2114

Merged
merged 1 commit into from
Oct 17, 2023

Commits on Oct 17, 2023

  1. drivers/libusb1.c: nut_libusb_open(): do not keep Bus/Device/BusPort …

    …pointers to random malloc() block if we did not get a number to print there from libusb
    
    Avoid (un-)pretty prints like:
       0.031364     [D2] - Bus: 006
       0.031366     [D2] - Bus Port: ▒UV▒▒U
       0.031368     [D2] - Device: 001
    
    Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
    jimklimov committed Oct 17, 2023
    Configuration menu
    Copy the full SHA
    43552f9 View commit details
    Browse the repository at this point in the history