summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/SymbolVendor
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2015-05-26 18:29:03 +0000
committerGreg Clayton <gclayton@apple.com>2015-05-26 18:29:03 +0000
commitde58a51b7cc7382bcb48c7f8e54d3b74c65b38a5 (patch)
tree629e14294eff13bf9f5670224d9a5fbad89f10e4 /lldb/source/Plugins/SymbolVendor
parent55fd265de8af9a241e89ad06111b1eb94e6718f5 (diff)
Fix some logic where we used to have char arrays, but we now use std::string. Use the correctly API to detect if they are not empty.
<rdar://problem/21090173>
Diffstat (limited to 'lldb/source/Plugins/SymbolVendor')
-rw-r--r--lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp b/lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp
index 15e31c1774e..f2d1f814144 100644
--- a/lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp
+++ b/lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp
@@ -202,7 +202,7 @@ SymbolVendorMacOSX::CreateInstance (const lldb::ModuleSP &module_sp, lldb_privat
plist.GetValueAsString("DBGBuildSourcePath", DBGBuildSourcePath);
plist.GetValueAsString("DBGSourcePath", DBGSourcePath);
- if (DBGBuildSourcePath[0] && DBGSourcePath[0])
+ if (!DBGBuildSourcePath.empty() && !DBGSourcePath.empty())
{
module_sp->GetSourceMappingList().Append (ConstString(DBGBuildSourcePath), ConstString(DBGSourcePath), true);
}