Fix a thinko in CommandObjectMemoryRegion.
Don't try to read the first argument till you've checked that there is one. llvm-svn: 329844
This commit is contained in:
parent
97d18bf9e9
commit
7b57946801
|
@ -1710,8 +1710,8 @@ protected:
|
|||
m_cmd_name.c_str(), m_cmd_syntax.c_str());
|
||||
result.SetStatus(eReturnStatusFailed);
|
||||
} else {
|
||||
auto load_addr_str = command[0].ref;
|
||||
if (command.GetArgumentCount() == 1) {
|
||||
auto load_addr_str = command[0].ref;
|
||||
load_addr = OptionArgParser::ToAddress(&m_exe_ctx, load_addr_str,
|
||||
LLDB_INVALID_ADDRESS, &error);
|
||||
if (error.Fail() || load_addr == LLDB_INVALID_ADDRESS) {
|
||||
|
|
Loading…
Reference in New Issue