From 671ce0c9298091f28c92430482b18c1449dcd09e Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 6 Aug 2015 16:15:29 -0500 Subject: Initialize uninitialized variable. (Oops.) --- toys/other/hexedit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'toys') diff --git a/toys/other/hexedit.c b/toys/other/hexedit.c index 1f6b42e1..a52d66d4 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); -- cgit v1.2.3