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

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--object-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object-file.c b/object-file.c
index 9210e2e6fe..3a7fe4fe96 100644
--- a/object-file.c
+++ b/object-file.c
@@ -1239,7 +1239,7 @@ int unpack_loose_header(git_zstream *stream,
buffer, bufsiz);
if (status < Z_OK)
- return status;
+ return -1;
/* Make sure we have the terminating NUL */
if (!memchr(buffer, '\0', stream->next_out - (unsigned char *)buffer))