Don't crash when trying to auto complete 'breakpoint set -n "_'

<rdar://problem/15921898>

llvm-svn: 200402
This commit is contained in:
Greg Clayton 2014-01-29 18:25:07 +00:00
parent 8f85994aca
commit 99dcbe1e50
1 changed files with 1 additions and 1 deletions

View File

@ -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)