From 0d71db672149dc396a30c0e33c3dbd5d3864245a Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Thu, 15 Jun 2023 18:24:51 +0100 Subject: [PATCH] pkill: Initialize `display_number_of_matches` to false This ensures the number of matches is not displayed when the `-c` option is not specified. --- Userland/Utilities/pkill.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Utilities/pkill.cpp b/Userland/Utilities/pkill.cpp index c5debea9a5..82834ba2c9 100644 --- a/Userland/Utilities/pkill.cpp +++ b/Userland/Utilities/pkill.cpp @@ -25,7 +25,7 @@ ErrorOr serenity_main(Main::Arguments args) TRY(Core::System::unveil("/etc/passwd", "r")); TRY(Core::System::unveil(nullptr, nullptr)); - bool display_number_of_matches; + bool display_number_of_matches = false; bool case_insensitive = false; bool echo = false; bool exact_match = false;