diff options
author | Kirill A. Shutemov <kirill@shutemov.name> | 2011-06-30 01:16:23 +0400 |
---|---|---|
committer | Kirill A. Shutemov <kirill@shutemov.name> | 2011-06-30 17:19:19 +0400 |
commit | fe5babacd6a2a8f358603404ee27327c20830c03 (patch) | |
tree | b5187a679096a8d37467aa86264f755bf76f1694 /src/filebuf.c | |
parent | 2dfc08875abfab747338c659f85bdf98d718cd1c (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.c | 1 |
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; } } } |