diff options
Diffstat (limited to 'common/membuf.c')
-rw-r--r-- | common/membuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/membuf.c b/common/membuf.c index dc8f6f692..f9f82d357 100644 --- a/common/membuf.c +++ b/common/membuf.c @@ -59,7 +59,7 @@ init_membuf_secure (membuf_t *mb, int initiallen) void put_membuf (membuf_t *mb, const void *buf, size_t len) { - if (mb->out_of_core) + if (mb->out_of_core || !len) return; if (mb->len + len >= mb->size) |