1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 01:51:03 +09:00

Utilities/lsusb: Fix uninitialized variable error

The variable `print_verbose` (which prints verbose information about the
USB devices connected to the system) was uninitialized in `lsusb`. This
was causing the verbose information to be printed if `-v` was NOT seen
on the command line.
This commit is contained in:
Jesse Buhagiar 2022-09-04 17:07:36 +10:00 committed by Tim Flynn
parent 7661b8ca02
commit 8df09f6e13
Notes: sideshowbarker 2024-07-17 07:31:41 +09:00

View file

@ -21,7 +21,7 @@
ErrorOr<int> serenity_main(Main::Arguments arguments)
{
bool print_verbose;
bool print_verbose = false;
bool flag_show_numerical = false;
Core::ArgsParser args;
args.set_general_help("List USB devices.");