]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.2003: xxd: compilation warning v9.0.2003
authorChristian Brabandt <cb@256bit.org>
Sun, 8 Oct 2023 18:36:44 +0000 (20:36 +0200)
committerChristian Brabandt <cb@256bit.org>
Sun, 8 Oct 2023 18:38:43 +0000 (20:38 +0200)
Problem:  xxd: compilation warning
Solution: initialize variables

Signed-off-by: Christian Brabandt <cb@256bit.org>
src/version.c
src/xxd/xxd.c

index 6a92ab75c72177af316f5d0c5f9f64d27a0dbab0..9a653f0741618d3138fe78fc3587a4d7516eb10d 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2003,
 /**/
     2002,
 /**/
index 56fb32183e21cf7b15c4d46f9bbc194a43e69675..544aa50b955248a9997ad834e9afb3f6ba2a6e74 100644 (file)
@@ -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
@@ -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);