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 line "prevkey = ic;"), which > is not something that the compiler guarantees. This patch lifts the > declaration of ic outside the loop to ensure that its value is > preserved across those iterations.
Thanks for the report. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/