Commit 38ce60f091c03ce3f7b1aa5fc2c4271b5a5a46ca

nulltoken 2011-07-09T08:36:37

Fix MSVC compilation warning

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/reflog.c b/src/reflog.c
index df01199..ce88c10 100644
--- a/src/reflog.c
+++ b/src/reflog.c
@@ -105,7 +105,7 @@ static int reflog_write(git_repository *repo, const char *ref_name,
 
 static int reflog_parse(git_reflog *log, const char *buf, size_t buf_size)
 {
-	int error;
+	int error = GIT_SUCCESS;
 	const char *ptr;
 	git_reflog_entry *entry;