Commit Diff


commit - ab1037939416e69e8b2991dca3a055c8bd9a8b66
commit + 76ab3c0ac4e48abb8703bf8960f72ba889a59bca
blob - 3cc2486fc638ed40c5fa42c23b428cf0605fba22
blob + b227f7fcc8dee90ca0acf92cdc217e47c29a37eb
--- lib/diff_main.c
+++ lib/diff_main.c
@@ -636,8 +636,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)