mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
* completer.c (complete_line_internal): Make sure the command
completer is not NULL before calling it.
This commit is contained in:
parent
ad82864c29
commit
2d9c5cff78
@ -1,3 +1,8 @@
|
||||
2009-11-19 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* completer.c (complete_line_internal): Make sure the command
|
||||
completer is not NULL before calling it.
|
||||
|
||||
2009-11-19 Jerome Guitton <guitton@adacore.com>
|
||||
|
||||
* ada-lang.c (packed_array_type): Rename to...
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user