Remove always-true part of a conditional expression.
authorJason Molenda <jmolenda@apple.com>
Fri, 17 Oct 2014 01:38:10 +0000 (01:38 +0000)
committerJason Molenda <jmolenda@apple.com>
Fri, 17 Oct 2014 01:38:10 +0000 (01:38 +0000)
clang warning.

llvm-svn: 220018

lldb/source/Host/macosx/Symbols.cpp

index e0602e7..27f2309 100644 (file)
@@ -730,7 +730,7 @@ Symbols::DownloadObjectAndSymbolFile (ModuleSpec &module_spec, bool force_lookup
             StreamString command;
             if (!uuid_str.empty())
                 command.Printf("%s --ignoreNegativeCache --copyExecutable %s", g_dsym_for_uuid_exe_path, uuid_str.c_str());
-            else if (file_path && file_path[0])
+            else if (file_path[0] != '\0')
                 command.Printf("%s --ignoreNegativeCache --copyExecutable %s", g_dsym_for_uuid_exe_path, file_path);
             
             if (!command.GetString().empty())