Commit 331578fb1d3ff7013b312914fa9c78ee61d8ce52

Ramsay Jones 2010-06-01T19:25:28

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>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;