mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:17:35 +00: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:
parent
7661b8ca02
commit
8df09f6e13
1 changed files with 1 additions and 1 deletions
|
@ -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.");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue