diff options
| author | Russell Belfer <rb@github.com> | 2013-04-18 14:35:13 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-04-18 14:59:25 -0700 |
| commit | 2aee1aa4165583cf77815df404d87818d53b72dc (patch) | |
| tree | 37142098df0c60846472dcee9efdb682758046e5 /src/index.c | |
| parent | 627d590819efa7f43b605ce1a22278c0c6b42516 (diff) | |
| download | libgit2-2aee1aa4165583cf77815df404d87818d53b72dc.tar.gz | |
Fix uninitialized var warnings
Diffstat (limited to 'src/index.c')
| -rw-r--r-- | src/index.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c index 6290ec4e8..2afd28158 100644 --- a/src/index.c +++ b/src/index.c @@ -1345,7 +1345,7 @@ static size_t read_extension(git_index *index, const char *buffer, size_t buffer static int parse_index(git_index *index, const char *buffer, size_t buffer_size) { unsigned int i; - struct index_header header; + struct index_header header = { 0 }; git_oid checksum_calculated, checksum_expected; #define seek_forward(_increase) { \ |
