[Lldb-commits] [lldb] r203357 - POSIX: add missing curly braces
Saleem Abdulrasool
compnerd at compnerd.org
Sat Mar 8 12:47:03 PST 2014
Author: compnerd
Date: Sat Mar 8 14:47:03 2014
New Revision: 203357
URL: http://llvm.org/viewvc/llvm-project?rev=203357&view=rev
Log:
POSIX: add missing curly braces
It seems that the original commit missed the curly braces for the scope, always
doing the string comparision.
Modified:
lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
Modified: lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp?rev=203357&r1=203356&r2=203357&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp (original)
+++ lldb/trunk/source/Plugins/Process/POSIX/ProcessPOSIX.cpp Sat Mar 8 14:47:03 2014
@@ -186,6 +186,7 @@ ProcessPOSIX::GetFilePath(
if (file_action)
{
if (file_action->GetAction () == ProcessLaunchInfo::FileAction::eFileActionOpen)
+ {
path = file_action->GetPath();
// By default the stdio paths passed in will be pseudo-terminal
// (/dev/pts). If so, convert to using a different default path
@@ -193,6 +194,7 @@ ProcessPOSIX::GetFilePath(
// also handle user overrides to /dev/null or a different file.
if (::strncmp(path, pts_name, ::strlen(pts_name)) == 0)
path = default_path;
+ }
}
return path;
More information about the lldb-commits
mailing list