diff options
author | Denys Vlasenko | 2023-01-02 16:59:40 +0100 |
---|---|---|
committer | Denys Vlasenko | 2023-01-02 16:59:40 +0100 |
commit | adb1c7dcfe14132f2a5e0947d1af3eb50c751327 (patch) | |
tree | 5e720fbc930ffc29ce9b60f21e76eca3e288a6f6 | |
parent | c4d296aa7c71d3dd812497c02c976124b66a0ff9 (diff) | |
download | busybox-adb1c7dcfe14132f2a5e0947d1af3eb50c751327.zip busybox-adb1c7dcfe14132f2a5e0947d1af3eb50c751327.tar.gz |
xxd: fix use of non-initialized data
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | util-linux/hexdump_xxd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util-linux/hexdump_xxd.c b/util-linux/hexdump_xxd.c index 45391b5..b594289 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) { char buf[80]; dumper_t *dumper; - char *opt_l, *opt_s, *opt_o; + char *opt_l, *opt_o; + char *opt_s = NULL; unsigned bytes = 2; unsigned cols = 0; unsigned opt; |