Skip to content

Commit

Permalink
Fix crash due to unintialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
shanminchao committed Oct 17, 2023
1 parent 4f12844 commit 5a56970
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dive_core/command_hierarchy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1745,6 +1745,7 @@ void CommandHierarchyCreator::AppendRegNodes(const IMemoryManager &mem_manager,

RegInfo temp = {};
temp.m_name = "Unknown";
temp.m_enum_handle = UINT8_MAX;
if (reg_info_ptr == nullptr)
reg_info_ptr = &temp;

Expand Down

0 comments on commit 5a56970

Please sign in to comment.