mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 13:04:42 +00:00
Merge pull request #2365 from kitbellew/fix-indexer-mmap
Fix warning on uninitialized variable.
This commit is contained in:
commit
b2a4be1d42
@ -110,7 +110,7 @@ int git_indexer_new(
|
|||||||
git_indexer *idx;
|
git_indexer *idx;
|
||||||
git_buf path = GIT_BUF_INIT, tmp_path = GIT_BUF_INIT;
|
git_buf path = GIT_BUF_INIT, tmp_path = GIT_BUF_INIT;
|
||||||
static const char suff[] = "/pack";
|
static const char suff[] = "/pack";
|
||||||
int error, fd;
|
int error, fd = -1;
|
||||||
|
|
||||||
idx = git__calloc(1, sizeof(git_indexer));
|
idx = git__calloc(1, sizeof(git_indexer));
|
||||||
GITERR_CHECK_ALLOC(idx);
|
GITERR_CHECK_ALLOC(idx);
|
||||||
|
Loading…
Reference in New Issue
Block a user