[Lldb-commits] [lldb] r230312 - Fix typo that breaks FileSystem::IsLocal
Vince Harron
vharron at google.com
Mon Feb 23 21:24:12 PST 2015
Author: vharron
Date: Mon Feb 23 23:24:12 2015
New Revision: 230312
URL: http://llvm.org/viewvc/llvm-project?rev=230312&view=rev
Log:
Fix typo that breaks FileSystem::IsLocal
Modified:
lldb/trunk/source/Host/posix/FileSystem.cpp
Modified: lldb/trunk/source/Host/posix/FileSystem.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/posix/FileSystem.cpp?rev=230312&r1=230311&r2=230312&view=diff
==============================================================================
--- lldb/trunk/source/Host/posix/FileSystem.cpp (original)
+++ lldb/trunk/source/Host/posix/FileSystem.cpp Mon Feb 23 23:24:12 2015
@@ -203,7 +203,7 @@ FileSystem::IsLocal(const FileSpec &spec
{
struct statfs statfs_info;
std::string path (spec.GetPath());
- if (statfs(path.c_str(), &statfs_info) != 0)
+ if (statfs(path.c_str(), &statfs_info) == 0)
return ::IsLocal(statfs_info);
return false;
}
More information about the lldb-commits
mailing list