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

View file

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