Commit 6062032e452afea451901333089da834edbe2078

Brian Lopez 2018-01-16T20:54:05

try and fix windows build

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/tests/message/trailer.c b/tests/message/trailer.c
index 77ad710..3bb180c 100644
--- a/tests/message/trailer.c
+++ b/tests/message/trailer.c
@@ -9,12 +9,13 @@ struct trailer {
 static void assert_trailers(const char *message, struct trailer *trailers)
 {
 	git_message_trailer_array arr;
+	size_t i;
 
 	int rc = git_message_trailers(&arr, message);
 
 	cl_assert_equal_i(0, rc);
 
-	for(size_t i=0; i<arr.count; i++) {
+	for(i=0; i<arr.count; i++) {
 		cl_assert_equal_s(arr.trailers[i].key, trailers[i].key);
 		cl_assert_equal_s(arr.trailers[i].value, trailers[i].value);
 	}