From 331578fb1d3ff7013b312914fa9c78ee61d8ce52 Mon Sep 17 00:00:00 2001 From: Ramsay Jones Date: Tue, 1 Jun 2010 19:25:28 +0100 Subject: msvc: Fix a "declaration after statement" compilation error Signed-off-by: Ramsay Jones Signed-off-by: Andreas Ericsson --- src/commit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/commit.c') diff --git a/src/commit.c b/src/commit.c index ca5281334..3bbeff3fc 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; -- cgit v1.2.1