xxd: fix use of non-initialized data

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
1_36_stable
Denys Vlasenko 2023-01-02 16:59:40 +01:00
parent c4d296aa7c
commit adb1c7dcfe
1 changed files with 2 additions and 1 deletions

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;