[Lldb-commits] [lldb] r107671 - /lldb/trunk/source/Commands/CommandCompletions.cpp

Greg Clayton gclayton at apple.com
Tue Jul 6 09:11:44 PDT 2010


Author: gclayton
Date: Tue Jul  6 11:11:44 2010
New Revision: 107671

URL: http://llvm.org/viewvc/llvm-project?rev=107671&view=rev
Log:
Jean-Daniel Dupas patch that fixes a bad if statement with assignment.

Modified:
    lldb/trunk/source/Commands/CommandCompletions.cpp

Modified: lldb/trunk/source/Commands/CommandCompletions.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Commands/CommandCompletions.cpp?rev=107671&r1=107670&r2=107671&view=diff
==============================================================================
--- lldb/trunk/source/Commands/CommandCompletions.cpp (original)
+++ lldb/trunk/source/Commands/CommandCompletions.cpp Tue Jul  6 11:11:44 2010
@@ -240,7 +240,7 @@
     {
         int resolved_username_len = FileSpec::ResolveUsername(containing_part, containing_part, sizeof (containing_part));
         // User name doesn't exist, we're not getting any further...
-        if (resolved_username_len = 0 || resolved_username_len >= sizeof (containing_part))
+        if (resolved_username_len == 0 || resolved_username_len >= sizeof (containing_part))
             return matches.GetSize();
     }
     





More information about the lldb-commits mailing list