diff options
| author | Albert Meltzer <kitbellew@users.noreply.github.com> | 2014-05-17 12:44:21 -0700 |
|---|---|---|
| committer | Albert Meltzer <kitbellew@users.noreply.github.com> | 2014-05-18 07:27:06 -0700 |
| commit | 9c4feef9f8e4c3b57d164f62b1e5666e87c1d8f2 (patch) | |
| tree | f0c477b553c70d0da4d8ff7cdd62f3d51f7b4fc4 /src/indexer.c | |
| parent | d7a294633dc6420d2411500bd40c7dfd2aa76d37 (diff) | |
| download | libgit2-9c4feef9f8e4c3b57d164f62b1e5666e87c1d8f2.tar.gz | |
Fix warning on uninitialized variable.
Diffstat (limited to 'src/indexer.c')
| -rw-r--r-- | src/indexer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indexer.c b/src/indexer.c index ebfdffb47..25c3d0537 100644 --- a/src/indexer.c +++ b/src/indexer.c @@ -110,7 +110,7 @@ int git_indexer_new( git_indexer *idx; git_buf path = GIT_BUF_INIT, tmp_path = GIT_BUF_INIT; static const char suff[] = "/pack"; - int error, fd; + int error, fd = -1; idx = git__calloc(1, sizeof(git_indexer)); GITERR_CHECK_ALLOC(idx); |
