aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-stream-buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/camel-stream-buffer.c')
-rw-r--r--camel/camel-stream-buffer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/camel/camel-stream-buffer.c b/camel/camel-stream-buffer.c
index 5db1c124f5..01880216b2 100644
--- a/camel/camel-stream-buffer.c
+++ b/camel/camel-stream-buffer.c
@@ -131,6 +131,9 @@ set_vbuf(CamelStreamBuffer *sbf, char *buf, CamelStreamBufferMode mode, int size
sbf->buf = g_malloc(size);
sbf->flags &= ~BUF_USER;
}
+
+ sbf->ptr = sbf->buf;
+ sbf->end = sbf->buf;
sbf->size = size;
sbf->mode = mode;
}