Fix -Wuninitialized warning

This commit is contained in:
Michael Schubert 2012-07-28 11:33:12 +02:00
parent 31637cd56a
commit 6810ba089a

View File

@ -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;