[Lldb-commits] [lldb] r181049 - Fix logic error in ProcessInfo::SetArg0

Andrew Kaylor andrew.kaylor at intel.com
Fri May 3 12:38:09 PDT 2013


Author: akaylor
Date: Fri May  3 14:38:09 2013
New Revision: 181049

URL: http://llvm.org/viewvc/llvm-project?rev=181049&view=rev
Log:
Fix logic error in ProcessInfo::SetArg0

Modified:
    lldb/trunk/include/lldb/Target/Process.h

Modified: lldb/trunk/include/lldb/Target/Process.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Target/Process.h?rev=181049&r1=181048&r2=181049&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Target/Process.h (original)
+++ lldb/trunk/include/lldb/Target/Process.h Fri May  3 14:38:09 2013
@@ -284,9 +284,9 @@ public:
     SetArg0 (const char *arg)
     {
         if (arg && arg[0])
-            m_arg0.clear();
-        else
             m_arg0 = arg;
+        else
+            m_arg0.clear();
     }
     
     void





More information about the lldb-commits mailing list