Skip to content

Commit b259dbd

Browse files
authored
ensure that dap_symbol is always initialized (llvm#156956)
1 parent eb0c977 commit b259dbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/tools/lldb-dap/Handler/ModuleSymbolsRequestHandler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ ModuleSymbolsRequestHandler::Run(const ModuleSymbolsArguments &args) const {
6060
if (!symbol.IsValid())
6161
continue;
6262

63-
Symbol dap_symbol;
63+
Symbol dap_symbol = {};
6464
dap_symbol.id = symbol.GetID();
6565
dap_symbol.type = symbol.GetType();
6666
dap_symbol.isDebug = symbol.IsDebug();

0 commit comments

Comments
 (0)