summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandCompletions.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-07-06 16:11:44 +0000
committerGreg Clayton <gclayton@apple.com>2010-07-06 16:11:44 +0000
commita08073565a783374d1426f6966429e9015c3eb4f (patch)
tree2de0751f94689d920c0eca383a48d9f6f2607ca0 /lldb/source/Commands/CommandCompletions.cpp
parentdde2ba0b604e9b77c9a8cfe494b315f29cced8ab (diff)
downloadbcm5719-llvm-a08073565a783374d1426f6966429e9015c3eb4f.tar.gz
bcm5719-llvm-a08073565a783374d1426f6966429e9015c3eb4f.zip
Jean-Daniel Dupas patch that fixes a bad if statement with assignment.
llvm-svn: 107671
Diffstat (limited to 'lldb/source/Commands/CommandCompletions.cpp')
-rw-r--r--lldb/source/Commands/CommandCompletions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Commands/CommandCompletions.cpp b/lldb/source/Commands/CommandCompletions.cpp
index 3065e891b85..39bb1f46093 100644
--- a/lldb/source/Commands/CommandCompletions.cpp
+++ b/lldb/source/Commands/CommandCompletions.cpp
@@ -240,7 +240,7 @@ DiskFilesOrDirectories
{
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();
}
OpenPOWER on IntegriCloud