From 5ad2c5df33895d765bc8bfe3c7229cfa0369e1bd Mon Sep 17 00:00:00 2001 From: rept1d Date: Tue, 19 Dec 2023 11:20:52 +0300 Subject: [PATCH] fix: use of uninitialized value in command_option copy ctor --- 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.");