diff options
author | Ramsay Jones <ramsay@ramsay1.demon.co.uk> | 2010-06-01 19:25:28 +0100 |
---|---|---|
committer | Andreas Ericsson <ae@op5.se> | 2010-06-02 11:18:55 +0200 |
commit | 331578fb1d3ff7013b312914fa9c78ee61d8ce52 (patch) | |
tree | b7af25b7c9b2f436fd6a5cbabf9d974d6111f6d1 /src/commit.c | |
parent | de141d4bb983dad861835e181e7ecd5692a58aba (diff) | |
download | libgit2-331578fb1d3ff7013b312914fa9c78ee61d8ce52.tar.gz |
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>
Diffstat (limited to 'src/commit.c')
-rw-r--r-- | src/commit.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |