diff options
| author | Greg Clayton <gclayton@apple.com> | 2014-01-29 18:25:07 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2014-01-29 18:25:07 +0000 |
| commit | 99dcbe1e5045826c07a29f131373c38748304fe2 (patch) | |
| tree | b83596d82999a610cddc8736ad901e927b4a54b2 /lldb/source/Interpreter | |
| parent | 8f85994acafa61bfce269bf5a40f2123c6d9dfd8 (diff) | |
| download | bcm5719-llvm-99dcbe1e5045826c07a29f131373c38748304fe2.tar.gz bcm5719-llvm-99dcbe1e5045826c07a29f131373c38748304fe2.zip | |
Don't crash when trying to auto complete 'breakpoint set -n "_'
<rdar://problem/15921898>
llvm-svn: 200402
Diffstat (limited to 'lldb/source/Interpreter')
| -rw-r--r-- | lldb/source/Interpreter/Options.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/Options.cpp b/lldb/source/Interpreter/Options.cpp index 8d245cc15da..c6c66d8ac65 100644 --- a/lldb/source/Interpreter/Options.cpp +++ b/lldb/source/Interpreter/Options.cpp @@ -952,7 +952,7 @@ Options::HandleOptionArgumentCompletion // If this is the "shlib" option and there was an argument provided, // restrict it to that shared library. - if (strcmp(cur_opt_name, "shlib") == 0 && cur_arg_pos != -1) + if (cur_opt_name && strcmp(cur_opt_name, "shlib") == 0 && cur_arg_pos != -1) { const char *module_name = input.GetArgumentAtIndex(cur_arg_pos); if (module_name) |

