Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-04-19 01:35:13 +0400
committerRussell Belfer <rb@github.com>2013-04-19 01:59:25 +0400
commit2aee1aa4165583cf77815df404d87818d53b72dc (patch)
tree37142098df0c60846472dcee9efdb682758046e5 /src/revparse.c
parent627d590819efa7f43b605ce1a22278c0c6b42516 (diff)
Fix uninitialized var warnings
Diffstat (limited to 'src/revparse.c')
-rw-r--r--src/revparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/revparse.c b/src/revparse.c
index 74635ed04..8a22a04f3 100644
--- a/src/revparse.c
+++ b/src/revparse.c
@@ -16,7 +16,7 @@
static int disambiguate_refname(git_reference **out, git_repository *repo, const char *refname)
{
- int error, i;
+ int error = 0, i;
bool fallbackmode = true;
git_reference *ref;
git_buf refnamebuf = GIT_BUF_INIT, name = GIT_BUF_INIT;