Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Schubert <schu@schu.io>2012-09-13 19:57:45 +0400
committerMichael Schubert <schu@schu.io>2012-09-13 19:57:45 +0400
commit13faa77c57d3fe9ddcfbfdf35c0cdd631521a280 (patch)
treec2d549fb1edadd1d9dae92c144276a36b4d9068d /src/blob.c
parent21d847d38ffd5055ffbcaabebf115edbee8e8b94 (diff)
Fix -Wuninitialized warning
Diffstat (limited to 'src/blob.c')
-rw-r--r--src/blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blob.c b/src/blob.c
index a5a0b6dde..6137746e1 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -68,7 +68,7 @@ static int write_file_stream(
int fd, error;
char buffer[4096];
git_odb_stream *stream = NULL;
- ssize_t read_len, written = 0;
+ ssize_t read_len = -1, written = 0;
if ((error = git_odb_open_wstream(
&stream, odb, (size_t)file_size, GIT_OBJ_BLOB)) < 0)