diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/couchdb/couch_stream.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_stream.erl b/src/couchdb/couch_stream.erl index ca43562a..103ebacb 100644 --- a/src/couchdb/couch_stream.erl +++ b/src/couchdb/couch_stream.erl @@ -90,7 +90,7 @@ copy(Fd, Sp, Len, DestStream) -> {ok, NewSp, _Sp2} = stream_data(Fd, Sp, Len, ?HUGE_CHUNK, fun(Bin, AccPointer) -> {ok, NewPointer} = write(DestStream, Bin), - if AccPointer == null -> NewPointer; true -> AccPointer end + {ok, if AccPointer == null -> NewPointer; true -> AccPointer end} end, null), {ok, NewSp}. |