summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2012-11-10 06:52:37 +0000
committerJason Molenda <jmolenda@apple.com>2012-11-10 06:52:37 +0000
commitb9371a6961486875f698d4dc5bafa7e9e32d4ef8 (patch)
tree3f4e78b27f594b34f534300bdf25f7b9035ae0f0 /lldb/source
parent625a875f052027e770ad360a10096220d63143ae (diff)
downloadbcm5719-llvm-b9371a6961486875f698d4dc5bafa7e9e32d4ef8.tar.gz
bcm5719-llvm-b9371a6961486875f698d4dc5bafa7e9e32d4ef8.zip
Don't assume that Modules have directories. They may be in-memory-only
things like our favorite "cl_kernels" and so module_directory here can be NULL. llvm-svn: 167666
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
index 6478b2ce74b..4391e68232a 100644
--- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
+++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp
@@ -86,7 +86,7 @@ PlatformDarwin::LocateExecutableScriptingResource (const ModuleSpec &module_spec
{
path_string.Clear();
path_string.Printf("%s.framework",module_basename);
- if (strstr(module_directory, path_string.GetData()))
+ if (module_directory && strstr(module_directory, path_string.GetData()))
{
// we are going to be in foo.framework/Versions/X/foo
path_string.Clear();
OpenPOWER on IntegriCloud