summaryrefslogtreecommitdiff
path: root/src/reflog.c
diff options
context:
space:
mode:
authorMichael Schubert <schu@schu.io>2012-07-28 11:33:12 +0200
committerMichael Schubert <schu@schu.io>2012-07-28 11:33:12 +0200
commit6810ba089a543a2407b1c8824dffa9b4e1d63975 (patch)
tree7f93d871db6a1cf53dfbae55b810a881a25a9b37 /src/reflog.c
parent31637cd56a5ed339fdebc9cd51af8f50a7794f24 (diff)
downloadlibgit2-6810ba089a543a2407b1c8824dffa9b4e1d63975.tar.gz
Fix -Wuninitialized warning
Diffstat (limited to 'src/reflog.c')
-rw-r--r--src/reflog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reflog.c b/src/reflog.c
index 53cc25fa1..93f68eaf2 100644
--- a/src/reflog.c
+++ b/src/reflog.c
@@ -197,7 +197,7 @@ static int create_new_reflog_file(const char *filepath)
int git_reflog_read(git_reflog **reflog, git_reference *ref)
{
- int error;
+ int error = -1;
git_buf log_path = GIT_BUF_INIT;
git_buf log_file = GIT_BUF_INIT;
git_reflog *log = NULL;