summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-05-11 05:15:00 -0700
committerVicent Martí <vicent@github.com>2013-05-11 05:15:00 -0700
commit7b5bc8f498cd4f05f8580d848c03188dc5b06811 (patch)
tree8bc5e13e212bee8bd852d51ebf7121b24d6b073d /src/commit.c
parentb6cc559a78a073f2aadd179fe40c09be7318c898 (diff)
parente583334c00e80274866c87495e6ed2a40ec0a6f6 (diff)
downloadlibgit2-7b5bc8f498cd4f05f8580d848c03188dc5b06811.tar.gz
Merge pull request #1569 from linquize/msvc-sdl
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);