diff options
| author | Michael Schubert <schu@schu.io> | 2012-09-13 17:57:45 +0200 |
|---|---|---|
| committer | Michael Schubert <schu@schu.io> | 2012-09-13 17:57:45 +0200 |
| commit | 13faa77c57d3fe9ddcfbfdf35c0cdd631521a280 (patch) | |
| tree | c2d549fb1edadd1d9dae92c144276a36b4d9068d /src/odb.c | |
| parent | 21d847d38ffd5055ffbcaabebf115edbee8e8b94 (diff) | |
| download | libgit2-13faa77c57d3fe9ddcfbfdf35c0cdd631521a280.tar.gz | |
Fix -Wuninitialized warning
Diffstat (limited to 'src/odb.c')
| -rw-r--r-- | src/odb.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -115,7 +115,7 @@ int git_odb__hashfd(git_oid *out, git_file fd, size_t size, git_otype type) int hdr_len; char hdr[64], buffer[2048]; git_hash_ctx *ctx; - ssize_t read_len; + ssize_t read_len = -1; hdr_len = format_object_header(hdr, sizeof(hdr), size, type); |
