summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Lehnardt <jan@apache.org>2008-07-17 18:52:46 +0000
committerJan Lehnardt <jan@apache.org>2008-07-17 18:52:46 +0000
commit48bed8e9d4d898708df8ebcb76c3db3ce64e1a2d (patch)
tree47e7d92dab53e12f7d3d847534d534e1cb1e7ec0 /src
parent724d837ea4e009e5f3867d2e89f91b9e95ca75a1 (diff)
Allow for empty attachments.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@677682 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/couchdb/couch_db.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_db.erl b/src/couchdb/couch_db.erl
index 05b584a5..8d671ea2 100644
--- a/src/couchdb/couch_db.erl
+++ b/src/couchdb/couch_db.erl
@@ -367,7 +367,7 @@ doc_flush_binaries(Doc, Fd) ->
end,
{{0,0}, 0}),
{Fd, NewStreamPointer, Len};
- Bin when is_binary(Bin), size(Bin) > 0 ->
+ Bin when is_binary(Bin) ->
{ok, StreamPointer} = couch_stream:write(OutputStream, Bin),
{Fd, StreamPointer, size(Bin)}
end,