Commit 9d4a5e899df48f7da001cde629f33a3de43b6092

Stefan Sperling 2019-10-09T07:57:27

rename local variable in diff3.c's skip() from j to len (not a loop index)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/lib/diff3.c b/lib/diff3.c
index 37bbc98..cf6d63f 100644
--- a/lib/diff3.c
+++ b/lib/diff3.c
@@ -824,12 +824,12 @@ static const struct got_error *
 skip(int *nskipped, int i, int from, struct diff3_state *d3s)
 {
 	const struct got_error *err = NULL;
-	size_t j, n;
+	size_t len, n;
 	char *line;
 
 	*nskipped = 0;
-	for (n = 0; d3s->cline[i] < from - 1; n += j) {
-		err = get_line(&line, d3s->fp[i], &j, d3s);
+	for (n = 0; d3s->cline[i] < from - 1; n += len) {
+		err = get_line(&line, d3s->fp[i], &len, d3s);
 		if (err)
 			return err;
 		d3s->cline[i]++;