diff options
author | sterling <sterling> | 2011-10-12 00:23:23 +0000 |
---|---|---|
committer | sterling <sterling> | 2011-10-12 00:23:23 +0000 |
commit | 58f632feac246e3ff3e38addee5213e041af0795 (patch) | |
tree | 63dc2629f64b4a29547dd9ea925629e96514f7e9 /readline | |
parent | 8499abd8912b031142b10d19e82ba32cf2d77fac (diff) | |
download | gdb-58f632feac246e3ff3e38addee5213e041af0795.tar.gz |
2011-05-11 Sterling Augustine <saugustine@google.com>
* complete.c (rl_completion_matches): Undo inadvertant checkin.
Diffstat (limited to 'readline')
-rw-r--r-- | readline/ChangeLog.gdb | 4 | ||||
-rw-r--r-- | readline/complete.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/readline/ChangeLog.gdb b/readline/ChangeLog.gdb index 229aa31e9d4..afc1e4964e0 100644 --- a/readline/ChangeLog.gdb +++ b/readline/ChangeLog.gdb @@ -1,3 +1,7 @@ +2011-05-11 Sterling Augustine <saugustine@google.com> + + * complete.c (rl_completion_matches): Undo inadvertant checkin. + 2011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com> Avoid free from a signal handler. diff --git a/readline/complete.c b/readline/complete.c index 7a1e6d98c57..a9c46dfc15e 100644 --- a/readline/complete.c +++ b/readline/complete.c @@ -1994,8 +1994,7 @@ rl_completion_matches (text, entry_function) match_list[1] = (char *)NULL; _rl_interrupt_immediately++; - while (string = (*entry_function) (text, matches) - && matches <= rl_completion_query_items) + while (string = (*entry_function) (text, matches)) { if (matches + 1 == match_list_size) match_list = (char **)xrealloc |