nano

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

commit 65da6341ba507aa11d472aa2a649c51492644dbc
parent c8a87b4d2ab8d393b8c7a49ecddbf5af3e0ea594
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue,  4 Aug 2020 17:07:01 +0200

tweaks: avoid a maybe-uninitialized-variable warning from gcc

Diffstat:
Msrc/text.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/text.c b/src/text.c @@ -2133,8 +2133,9 @@ void treat(char *tempfile_name, char *theprogram, bool spelling) block_sigwinch(TRUE); wait(&program_status); block_sigwinch(FALSE); - } else - errornumber = errno; + } + + errornumber = errno; /* Restore the terminal state and reenter curses mode. */ terminal_init();