From 8df09f6e13a7e1bed543981f0b87453dbac055ac Mon Sep 17 00:00:00 2001 From: Jesse Buhagiar Date: Sun, 4 Sep 2022 17:07:36 +1000 Subject: 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. --- Userland/Utilities/lsusb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Utilities/lsusb.cpp b/Userland/Utilities/lsusb.cpp index 753d91b8ed..a701e9d8ed 100644 --- a/Userland/Utilities/lsusb.cpp +++ b/Userland/Utilities/lsusb.cpp @@ -21,7 +21,7 @@ ErrorOr 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."); -- cgit v1.2.3