Commit 937e0e58712b4c76542d1d1485bce7679b7320a6

Stefan Sperling 2019-10-21T10:53:42

fix build on sparc64 (uninitialized variable)

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/diff3.c b/lib/diff3.c
index 4e9889d..9d0709e 100644
--- a/lib/diff3.c
+++ b/lib/diff3.c
@@ -595,7 +595,7 @@ readin(size_t *n, char *name, struct diff **dd, struct diff3_state *d3s)
 	FILE *f;
 	int a, b, c, d;
 	char kind, *p;
-	size_t i;
+	size_t i = 0;
 
 	*n = 0;