diff options
author | Rob Landley <rob@landley.net> | 2015-08-06 16:15:29 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2015-08-06 16:15:29 -0500 |
commit | 671ce0c9298091f28c92430482b18c1449dcd09e (patch) | |
tree | 328de132fff8c20893729338d5857587614ced03 | |
parent | 9ce9399c01fd6aca688434dd2c552df2950a15cf (diff) | |
download | toybox-671ce0c9298091f28c92430482b18c1449dcd09e.tar.gz toybox-671ce0c9298091f28c92430482b18c1449dcd09e.tar.bz2 toybox-671ce0c9298091f28c92430482b18c1449dcd09e.zip |
Initialize uninitialized variable. (Oops.)
-rw-r--r-- | toys/other/hexedit.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |