diff options
Diffstat (limited to 'lldb/source/API/SBPlatform.cpp')
-rw-r--r-- | lldb/source/API/SBPlatform.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/API/SBPlatform.cpp b/lldb/source/API/SBPlatform.cpp index 10b7219eb35..6085cef3206 100644 --- a/lldb/source/API/SBPlatform.cpp +++ b/lldb/source/API/SBPlatform.cpp @@ -251,7 +251,8 @@ SBError SBPlatform::ConnectRemote(SBPlatformConnectOptions &connect_options) { PlatformSP platform_sp(GetSP()); if (platform_sp && connect_options.GetURL()) { Args args; - args.AppendArgument(connect_options.GetURL()); + args.AppendArgument( + llvm::StringRef::withNullAsEmpty(connect_options.GetURL())); sb_error.ref() = platform_sp->ConnectRemote(args); } else { sb_error.SetErrorString("invalid platform"); |