aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2023-01-02 16:59:40 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2023-01-02 16:59:40 +0100
commitadb1c7dcfe14132f2a5e0947d1af3eb50c751327 (patch)
tree5e720fbc930ffc29ce9b60f21e76eca3e288a6f6
parentc4d296aa7c71d3dd812497c02c976124b66a0ff9 (diff)
downloadbusybox-w32-adb1c7dcfe14132f2a5e0947d1af3eb50c751327.tar.gz
busybox-w32-adb1c7dcfe14132f2a5e0947d1af3eb50c751327.tar.bz2
busybox-w32-adb1c7dcfe14132f2a5e0947d1af3eb50c751327.zip
xxd: fix use of non-initialized data
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--util-linux/hexdump_xxd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/hexdump_xxd.c b/util-linux/hexdump_xxd.c
index 45391b565..b5942899e 100644
--- a/util-linux/hexdump_xxd.c
+++ b/util-linux/hexdump_xxd.c
@@ -229,7 +229,8 @@ int xxd_main(int argc UNUSED_PARAM, char **argv)
229{ 229{
230 char buf[80]; 230 char buf[80];
231 dumper_t *dumper; 231 dumper_t *dumper;
232 char *opt_l, *opt_s, *opt_o; 232 char *opt_l, *opt_o;
233 char *opt_s = NULL;
233 unsigned bytes = 2; 234 unsigned bytes = 2;
234 unsigned cols = 0; 235 unsigned cols = 0;
235 unsigned opt; 236 unsigned opt;