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:
authorKirill A. Shutemov <kirill@shutemov.name>2011-06-30 01:16:23 +0400
committerKirill A. Shutemov <kirill@shutemov.name>2011-06-30 17:19:19 +0400
commitfe5babacd6a2a8f358603404ee27327c20830c03 (patch)
treeb5187a679096a8d37467aa86264f755bf76f1694 /src/filebuf.c
parent2dfc08875abfab747338c659f85bdf98d718cd1c (diff)
filebuf: fix endless loop on writing buf > WRITE_BUFFER_SIZE
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Diffstat (limited to 'src/filebuf.c')
-rw-r--r--src/filebuf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/filebuf.c b/src/filebuf.c
index ca13e6181..01b36bcff 100644
--- a/src/filebuf.c
+++ b/src/filebuf.c
@@ -331,6 +331,7 @@ int git_filebuf_write(git_filebuf *file, const void *buff, size_t len)
error = file->write(file, buf, len);
if (error < GIT_SUCCESS)
return git__rethrow(error, "Failed to write to buffer");
+ return GIT_SUCCESS;
}
}
}