summaryrefslogtreecommitdiff
path: root/src/odb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/odb.c')
-rw-r--r--src/odb.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/odb.c b/src/odb.c
index 82b4310cf..57f01ee17 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -352,8 +352,7 @@ static int fake_wstream__write(git_odb_stream *_stream, const char *data, size_t
{
fake_wstream *stream = (fake_wstream *)_stream;
- if (stream->written + len > stream->size)
- return -1;
+ assert(stream->written + len > stream->size);
memcpy(stream->buffer + stream->written, data, len);
stream->written += len;