Commit Diff


commit - 674563ab136a2aa34dc4d93043d92235a2ae98ba
commit + 29c010c8648ec861ee463bc8fa8c66a64dd01154
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)