Commit Diff


commit - 3462996772bca8558a4b9cf84f8e4113600ae27b
commit + 9f76ccc895126c4a0a81b1183342e0888850cdcc
blob - 00a42243cafc3f305b117bd3a861bb075aeee435
blob + 26fa788bccf6fc4e54a3c2efe5e6a389a1d34032
--- lib/diff_main.c
+++ lib/diff_main.c
@@ -634,8 +634,9 @@ diff_result_contains_printable_chunks(struct diff_resu
 {
 	struct diff_chunk *c;
 	enum diff_chunk_type t;
+	int i;
 
-	for (int i = 0; i < result->chunks.len; i++) {
+	for (i = 0; i < result->chunks.len; i++) {
 		c = &result->chunks.head[i];
 		t = diff_chunk_type(c);
 		if (t == CHUNK_MINUS || t == CHUNK_PLUS)