aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-08-06 16:15:29 -0500
committerRob Landley <rob@landley.net>2015-08-06 16:15:29 -0500
commit671ce0c9298091f28c92430482b18c1449dcd09e (patch)
tree328de132fff8c20893729338d5857587614ced03
parent9ce9399c01fd6aca688434dd2c552df2950a15cf (diff)
downloadtoybox-671ce0c9298091f28c92430482b18c1449dcd09e.tar.gz
Initialize uninitialized variable. (Oops.)
-rw-r--r--toys/other/hexedit.c2
1 files changed, 2 insertions, 0 deletions
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);