Skip to content

Commit 7851e59

Browse files
author
Vicent Marti
committed
Merge pull request libgit2#2351 from linquize/init-var
Initialize local variable
2 parents 2bcc1af + b3f27c4 commit 7851e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/indexer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ static int fix_thin_pack(git_indexer *idx, git_transfer_progress *stats)
703703
size_t size;
704704
git_otype type;
705705
git_mwindow *w = NULL;
706-
git_off_t curpos;
706+
git_off_t curpos = 0;
707707
unsigned char *base_info;
708708
unsigned int left = 0;
709709
git_oid base;

0 commit comments

Comments
 (0)