Commit b3f27c43685c3fb492b03ccca7c57a0b5db217ab

Linquize 2014-05-13T21:08:50

Initialize local variable

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/indexer.c b/src/indexer.c
index 3c8415c..68496ce 100644
--- a/src/indexer.c
+++ b/src/indexer.c
@@ -703,7 +703,7 @@ static int fix_thin_pack(git_indexer *idx, git_transfer_progress *stats)
 	size_t size;
 	git_otype type;
 	git_mwindow *w = NULL;
-	git_off_t curpos;
+	git_off_t curpos = 0;
 	unsigned char *base_info;
 	unsigned int left = 0;
 	git_oid base;