From e45499816eab8abadbdd5bb6dd79b526a4ed6648 Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Sat, 11 Feb 2023 23:03:39 +0100 Subject: Implement undo This also fixes a bunch of valgrind errors --- src/display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/display.c') diff --git a/src/display.c b/src/display.c index 39993ef..77b5b32 100644 --- a/src/display.c +++ b/src/display.c @@ -90,7 +90,7 @@ struct display *display_create() { tcgetattr(0, &orig_term); // set terminal to raw mode - struct termios term; + struct termios term = {0}; cfmakeraw(&term); tcsetattr(0, TCSADRAIN, &term); -- cgit v1.2.3