From bf6bcde0788fa8dd9c1d7365b011a833c247ca91 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 12 Apr 2019 13:35:22 +0200 Subject: [PATCH] tweaks: initialize a boolean before it is referenced [valgrind] Found because of a report by Devin Hussey . --- src/winio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/winio.c b/src/winio.c index 32a14b6d..fad9c5ed 100644 --- 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;