nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit bf6bcde0788fa8dd9c1d7365b011a833c247ca91
parent 167a8e5c0959d4221db58ec8778c84a7d57b053d
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 12 Apr 2019 13:35:22 +0200

tweaks: initialize a boolean before it is referenced  [valgrind]

Found because of a report by Devin Hussey <husseydevin@gmail.com>.

Diffstat:
Msrc/winio.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c @@ -3197,7 +3197,7 @@ size_t actual_last_column(size_t leftedge, size_t column) { #ifndef NANO_TINY if (ISSET(SOFTWRAP)) { - bool last_chunk; + bool last_chunk = FALSE; size_t end_col = get_softwrap_breakpoint(openfile->current->data, leftedge, &last_chunk) - leftedge;