summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorLinquize <linquize@yahoo.com.hk>2013-05-10 21:42:22 +0800
committerLinquize <linquize@yahoo.com.hk>2013-05-11 20:13:26 +0800
commite583334c00e80274866c87495e6ed2a40ec0a6f6 (patch)
tree8bc5e13e212bee8bd852d51ebf7121b24d6b073d /src/commit.c
parentb6cc559a78a073f2aadd179fe40c09be7318c898 (diff)
downloadlibgit2-e583334c00e80274866c87495e6ed2a40ec0a6f6.tar.gz
Fix broken build when MSVC SDL checks is enabled
Diffstat (limited to 'src/commit.c')
-rw-r--r--src/commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commit.c b/src/commit.c
index 3dc647c9b..be6e32c76 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -292,7 +292,7 @@ int git_commit_nth_gen_ancestor(
const git_commit *commit,
unsigned int n)
{
- git_commit *current, *parent;
+ git_commit *current, *parent = NULL;
int error;
assert(ancestor && commit);