Re: [Patch] potentially uninitialized variable in rl_generic_bind

2019-05-24 Thread Chet Ramey
On 5/24/19 4:14 AM, Adam Richter wrote: > cppcheck noticed that, in the file lib/readline/bind.c, the function > rl_generic_bind contains a loop that declares a variable named ic in > the loop body, and relies on that variable being initialized with its > value from the previous iteration (in the l

[Patch] potentially uninitialized variable in rl_generic_bind

2019-05-24 Thread Adam Richter
cppcheck noticed that, in the file lib/readline/bind.c, the function rl_generic_bind contains a loop that declares a variable named ic in the loop body, and relies on that variable being initialized with its value from the previous iteration (in the line "prevkey = ic;"), which is not something tha