projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ce9399
)
Initialize uninitialized variable. (Oops.)
author
Rob Landley
<rob@landley.net>
Thu, 6 Aug 2015 21:15:29 +0000
(16:15 -0500)
committer
Rob Landley
<rob@landley.net>
Thu, 6 Aug 2015 21:15:29 +0000
(16:15 -0500)
toys/other/hexedit.c
patch
|
blob
|
history
diff --git
a/toys/other/hexedit.c
b/toys/other/hexedit.c
index
1f6b42e
..
a52d66d
100644
(file)
--- 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);