Small fix to "frame select" sans frame # feature added yesterday.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@140901 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectFrame.cpp b/source/Commands/CommandObjectFrame.cpp
index 288a5ea..b16589d 100644
--- a/source/Commands/CommandObjectFrame.cpp
+++ b/source/Commands/CommandObjectFrame.cpp
@@ -248,11 +248,13 @@
const char *frame_idx_cstr = command.GetArgumentAtIndex(0);
frame_idx = Args::StringToUInt32 (frame_idx_cstr, UINT32_MAX, 0);
}
- if (command.GetArgumentCount() == 0)
+ else if (command.GetArgumentCount() == 0)
{
frame_idx = thread->GetSelectedFrameIndex ();
if (frame_idx == UINT32_MAX)
+ {
frame_idx = 0;
+ }
}
else
{