Skip to content

Commit b36bf47

Browse files
authored
[LLDB][Telemetry]Init field to nullptr. (#131191)
The field is currently un-initialised and can cause a crash in some build configs (where it got random values)
1 parent ca43990 commit b36bf47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/include/lldb/Core/Telemetry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct LLDBBaseTelemetryInfo : public llvm::telemetry::TelemetryInfo {
6565
// TBD: could add some memory stats here too?
6666

6767
lldb::user_id_t debugger_id = LLDB_INVALID_UID;
68-
Debugger *debugger;
68+
Debugger *debugger = nullptr;
6969

7070
// For dyn_cast, isa, etc operations.
7171
llvm::telemetry::KindType getKind() const override {

0 commit comments

Comments
 (0)