diff options
author | Jan Vrany <jan.vrany@fit.cvut.cz> | 2019-05-30 13:04:26 +0100 |
---|---|---|
committer | Jan Vrany <jan.vrany@fit.cvut.cz> | 2019-05-30 13:05:40 +0100 |
commit | 0ef209f22c24b9243de68c35c576f7111198f915 (patch) | |
tree | 01983da66876332cfaea7f1d650360aa25a78bde /gdb/ChangeLog | |
parent | e3f56a99f66298bb505d0426950b9716a853a5df (diff) | |
download | gdb-0ef209f22c24b9243de68c35c576f7111198f915.zip gdb-0ef209f22c24b9243de68c35c576f7111198f915.tar.gz gdb-0ef209f22c24b9243de68c35c576f7111198f915.tar.bz2 |
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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2ab3615..a32c606 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz> + + PR cli/24587 + * completer.c (complete): Initialize variable word. + 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com> Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192 |