[Lldb-commits] [lldb] r238984 - I make no claims that Mach ports work, but at least we should check the right thing

Enrico Granata egranata at apple.com
Wed Jun 3 15:35:55 PDT 2015


Author: enrico
Date: Wed Jun  3 17:35:55 2015
New Revision: 238984

URL: http://llvm.org/viewvc/llvm-project?rev=238984&view=rev
Log:
I make no claims that Mach ports work, but at least we should check the right thing


Modified:
    lldb/trunk/source/Core/ConnectionMachPort.cpp

Modified: lldb/trunk/source/Core/ConnectionMachPort.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ConnectionMachPort.cpp?rev=238984&r1=238983&r2=238984&view=diff
==============================================================================
--- lldb/trunk/source/Core/ConnectionMachPort.cpp (original)
+++ lldb/trunk/source/Core/ConnectionMachPort.cpp Wed Jun  3 17:35:55 2015
@@ -68,7 +68,7 @@ ConnectionMachPort::Connect (const char
     
     ConnectionStatus status = eConnectionStatusError;
     
-    if (strncmp (s, "bootstrap-checkin://", strlen("bootstrap-checkin://")))
+    if (0 == strncmp (s, "bootstrap-checkin://", strlen("bootstrap-checkin://")))
     {
         s += strlen("bootstrap-checkin://");
         
@@ -82,7 +82,7 @@ ConnectionMachPort::Connect (const char
                 error_ptr->SetErrorString ("bootstrap port name is empty");
         }
     }
-    else if (strncmp (s, "bootstrap-lookup://", strlen("bootstrap-lookup://")))
+    else if (0 == strncmp (s, "bootstrap-lookup://", strlen("bootstrap-lookup://")))
     {
         s += strlen("bootstrap-lookup://");
         if (*s)





More information about the lldb-commits mailing list