forked from Imagelibrary/binutils-gdb
* completer.c (complete_line_internal): Make sure the command
completer is not NULL before calling it.
This commit is contained in:
@@ -676,7 +676,7 @@ complete_line_internal (const char *text, char *line_buffer, int point,
|
||||
p--)
|
||||
;
|
||||
}
|
||||
if (reason != handle_brkchars)
|
||||
if (reason != handle_brkchars && c->completer != NULL)
|
||||
list = (*c->completer) (c, p, word);
|
||||
}
|
||||
}
|
||||
@@ -747,7 +747,7 @@ complete_line_internal (const char *text, char *line_buffer, int point,
|
||||
p--)
|
||||
;
|
||||
}
|
||||
if (reason != handle_brkchars)
|
||||
if (reason != handle_brkchars && c->completer != NULL)
|
||||
list = (*c->completer) (c, p, word);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user