From 671ce0c9298091f28c92430482b18c1449dcd09e Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 6 Aug 2015 16:15:29 -0500 Subject: [PATCH] Initialize uninitialized variable. (Oops.) --- toys/other/hexedit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toys/other/hexedit.c b/toys/other/hexedit.c index 1f6b42e..a52d66d 100644 --- a/toys/other/hexedit.c +++ b/toys/other/hexedit.c @@ -137,6 +137,8 @@ void hexedit_main(void) fd = xopen(*toys.optargs, ro ? O_RDONLY : O_RDWR); char keybuf[16]; + *keybuf = 0; + // Terminal setup TT.height = 25; terminal_size(0, &TT.height); -- 2.7.4