Skip to content

Commit

Permalink
patch 9.0.2003: xxd: compilation warning
Browse files Browse the repository at this point in the history
Problem:  xxd: compilation warning
Solution: initialize variables

Signed-off-by: Christian Brabandt <cb@256bit.org>
  • Loading branch information
chrisbra committed Oct 8, 2023
1 parent 1e33cd7 commit 7879bc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2003,
/**/
2002,
/**/
Expand Down
4 changes: 2 additions & 2 deletions src/xxd/xxd.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ extern void perror __P((char *));
# endif
#endif

char version[] = "xxd 2023-10-06 by Juergen Weigert et al.";
char version[] = "xxd 2023-10-08 by Juergen Weigert et al.";
#ifdef WIN32
char osver[] = " (Win32)";
#else
Expand Down Expand Up @@ -364,7 +364,7 @@ huntype(
int hextype,
long base_off)
{
int c, ign_garb = 1, n1 = -1, n2 = 0, n3, p = cols, bt, b = 0, bcnt = 0;
int c, ign_garb = 1, n1 = -1, n2 = 0, n3 = 0, p = cols, bt = 0, b = 0, bcnt = 0;
long have_off = 0, want_off = 0;

rewind(fpi);
Expand Down

0 comments on commit 7879bc5

Please sign in to comment.