Initialize variable word in complete
authorJan Vrany <jan.vrany@fit.cvut.cz>
Thu, 30 May 2019 12:04:26 +0000 (13:04 +0100)
committerJan Vrany <jan.vrany@fit.cvut.cz>
Thu, 30 May 2019 12:05:40 +0000 (13:05 +0100)
commit0ef209f22c24b9243de68c35c576f7111198f915
tree01983da66876332cfaea7f1d650360aa25a78bde
parente3f56a99f66298bb505d0426950b9716a853a5df
Initialize variable word in complete

The complete function should set parameter word to the end of the
word to complete. However, completion_find_completion_word may fail,
leaving word uninitialized.

To make sure word is always set, initialize it to the completion point
which is the end of the line parameter.

gdb/Changelog

PR cli/24587
* completer.c (complete): Initialize variable word.
gdb/ChangeLog
gdb/completer.c
This page took 0.041192 seconds and 4 git commands to generate.