diff options
author | Jesse Buhagiar <jooster669@gmail.com> | 2022-09-04 17:07:36 +1000 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2022-09-04 13:26:05 -0400 |
commit | 8df09f6e13a7e1bed543981f0b87453dbac055ac (patch) | |
tree | cb8614ead29e0879294292b2ce9d0f04a0f1b4c6 | |
parent | 7661b8ca02d5602d8ecb1554445c89e05d6ac701 (diff) | |
download | serenity-8df09f6e13a7e1bed543981f0b87453dbac055ac.zip |
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.
-rw-r--r-- | Userland/Utilities/lsusb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<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."); |