xxd: fix use of non-initialized data

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2023-01-02 16:59:40 +01:00
parent c4d296aa7c
commit adb1c7dcfe

View File

@ -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;