summaryrefslogtreecommitdiff
path: root/src/display.c
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2023-02-11 23:03:39 +0100
committerAlbert Cervin <albert@acervin.com>2023-02-15 23:41:35 +0100
commite45499816eab8abadbdd5bb6dd79b526a4ed6648 (patch)
tree3cdcb0238aaae8ed1b3578e4ad71883f0702de3c /src/display.c
parentc2976cea9bbca465712534b7e523783e2ccc6c6e (diff)
downloaddged-e45499816eab8abadbdd5bb6dd79b526a4ed6648.tar.gz
dged-e45499816eab8abadbdd5bb6dd79b526a4ed6648.tar.xz
dged-e45499816eab8abadbdd5bb6dd79b526a4ed6648.zip
Implement undo
This also fixes a bunch of valgrind errors
Diffstat (limited to 'src/display.c')
-rw-r--r--src/display.c2
1 files changed, 1 insertions, 1 deletions
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);