We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc60001 commit 1d4bec9Copy full SHA for 1d4bec9
ext/rugged/rugged_commit.c
@@ -66,6 +66,7 @@ static VALUE rb_git_commit_trailers_GET(VALUE self)
66
git_message_trailer_array arr;
67
VALUE trailers = rb_ary_new();
68
int error;
69
+ size_t i;
70
71
Data_Get_Struct(self, git_commit, commit);
72
@@ -78,7 +79,7 @@ static VALUE rb_git_commit_trailers_GET(VALUE self)
78
79
error = git_message_trailers(&arr, message);
80
rugged_exception_check(error);
81
- for(size_t i=0; i<arr.count; i++) {
82
+ for(i = 0; i < arr.count; i++) {
83
VALUE pair = rb_ary_new();
84
const char *key = arr.trailers[i].key;
85
const char *value = arr.trailers[i].value;
0 commit comments