nano

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

commit 1f7384ebd2ac5fcf73a7d8b6aa980335bf551410
parent 95fffa99aa6139d353b2693f0d2fed3ddaab85ed
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon,  5 Mar 2018 11:00:04 +0100

tweaks: appease valgrind concerning syscalls with uninitialized values

Diffstat:
Msrc/nano.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -1429,7 +1429,7 @@ void do_toggle_void(void) void disable_extended_io(void) { #ifdef HAVE_TERMIOS_H - struct termios term; + struct termios term = {0}; tcgetattr(0, &term); term.c_lflag &= ~IEXTEN; @@ -1443,7 +1443,7 @@ void disable_extended_io(void) void disable_signals(void) { #ifdef HAVE_TERMIOS_H - struct termios term; + struct termios term = {0}; tcgetattr(0, &term); term.c_lflag &= ~ISIG; @@ -1457,7 +1457,7 @@ void disable_signals(void) void enable_signals(void) { #ifdef HAVE_TERMIOS_H - struct termios term; + struct termios term = {0}; tcgetattr(0, &term); term.c_lflag |= ISIG;