Commit 7851e595ad832b532e6edc6ac5fb0e43db24fc6a

Vicent Marti 2014-05-14T16:05:23

Merge pull request #2351 from linquize/init-var 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;