Initialize uninitialized variable. (Oops.)
authorRob Landley <rob@landley.net>
Thu, 6 Aug 2015 21:15:29 +0000 (16:15 -0500)
committerRob Landley <rob@landley.net>
Thu, 6 Aug 2015 21:15:29 +0000 (16:15 -0500)
toys/other/hexedit.c

index 1f6b42e..a52d66d 100644 (file)
@@ -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);