From e4a03b26898e9ca5917a425fc4b089bf5ba19272 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 17 Feb 2022 20:51:01 -0800 Subject: [PATCH] [lldb] Default initialize CommandOptions fields (NFC) Make sure all fields are default initialized to the same values. --- lldb/source/Commands/CommandObjectCommands.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp index ebb84bc..a828ba1 100644 --- a/lldb/source/Commands/CommandObjectCommands.cpp +++ b/lldb/source/Commands/CommandObjectCommands.cpp @@ -1480,7 +1480,7 @@ protected: std::string m_class_name; std::string m_funct_name; std::string m_short_help; - bool m_overwrite; + bool m_overwrite = false; ScriptedCommandSynchronicity m_synchronicity = eScriptedCommandSynchronicitySynchronous; }; @@ -1637,8 +1637,9 @@ protected: std::string m_cmd_name; CommandObjectMultiword *m_container = nullptr; std::string m_short_help; - bool m_overwrite; - ScriptedCommandSynchronicity m_synchronicity; + bool m_overwrite = false; + ScriptedCommandSynchronicity m_synchronicity = + eScriptedCommandSynchronicitySynchronous; }; // CommandObjectCommandsScriptList -- 2.7.4