Skip to content

Commit 0266ba5

Browse files
committed
Fixing an invlaid offset when validating command arguments
1 parent 5fd269a commit 0266ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/tools/lldb-dap/DAP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ bool SendEventRequestHandler::DoExecute(lldb::SBDebugger debugger,
997997

998998
if (command[1] && !llvm::StringRef(command[1]).empty()) {
999999
// See if we have to unused arguments.
1000-
if (command[2] && !llvm::StringRef(command[1]).empty()) {
1000+
if (command[2] && !llvm::StringRef(command[2]).empty()) {
10011001
result.SetError(
10021002
"Additional arguments found, expected `lldb-dap send-event "
10031003
"<name> <body>?`.");

0 commit comments

Comments
 (0)