From ccc7133079feab92a9e69875fe1f8f4340ab2663 Mon Sep 17 00:00:00 2001 From: rept1d <32854273+rept1d@users.noreply.github.com> Date: Tue, 19 Dec 2023 12:36:37 +0300 Subject: [PATCH] fix: use of uninitialized value in command_option copy ctor (#1044) --- src/dpp/slashcommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dpp/slashcommand.cpp b/src/dpp/slashcommand.cpp index 5b4b8cb9b0..77dd4bfebe 100644 --- a/src/dpp/slashcommand.cpp +++ b/src/dpp/slashcommand.cpp @@ -331,7 +331,7 @@ command_option_choice &command_option_choice::fill_from_json_impl(nlohmann::json } command_option::command_option(command_option_type t, const std::string &n, const std::string &d, bool r) : - type(t), name(n), description(d), required(r), autocomplete(false) + type(t), name(n), description(d), required(r), focused(false), autocomplete(false) { if (std::any_of(n.begin(), n.end(), [](unsigned char c){ return std::isupper(c); })) { throw dpp::logic_exception(err_command_has_caps, "Command options can not contain capital letters in the name of the option.");