msvc: Fix a "declaration after statement" compilation error Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk> Signed-off-by: Andreas Ericsson <ae@op5.se>
diff --git a/src/commit.c b/src/commit.c
index ca52813..3bbeff3 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -43,10 +43,12 @@ const git_oid *git_commit_id(git_commit *c)
void git_commit__mark_uninteresting(git_commit *commit)
{
+ git_commit_node *parents;
+
if (commit == NULL)
return;
- git_commit_node *parents = commit->parents.head;
+ parents = commit->parents.head;
commit->uninteresting = 1;