From: Jason Molenda Date: Fri, 17 Oct 2014 01:38:10 +0000 (+0000) Subject: Remove always-true part of a conditional expression. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b94115d5054978d59de28422c5f304b105ab03a;p=platform%2Fupstream%2Fllvm.git Remove always-true part of a conditional expression. clang warning. llvm-svn: 220018 --- diff --git a/lldb/source/Host/macosx/Symbols.cpp b/lldb/source/Host/macosx/Symbols.cpp index e0602e7..27f2309 100644 --- a/lldb/source/Host/macosx/Symbols.cpp +++ b/lldb/source/Host/macosx/Symbols.cpp @@ -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())