summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Woodhouse <David.Woodhouse@intel.com>2011-03-21 14:02:27 +0000
committerDavid Woodhouse <David.Woodhouse@intel.com>2011-03-21 14:03:11 +0000
commit608b14e7fef529151e1a23963189f5a0ea22fade (patch)
tree5df6372eaa27efc7c66e0bf0689aca722a2f1006
parentaf48c71607a6b84777c65e031c9e121051cbd13f (diff)
downloadlibsoup-608b14e7fef529151e1a23963189f5a0ea22fade.tar.gz
Reset priv->base_offset in soup_message_body_truncate()
-rw-r--r--libsoup/soup-message-body.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libsoup/soup-message-body.c b/libsoup/soup-message-body.c
index 11770308..689acf84 100644
--- a/libsoup/soup-message-body.c
+++ b/libsoup/soup-message-body.c
@@ -527,6 +527,7 @@ soup_message_body_truncate (SoupMessageBody *body)
soup_buffer_free (iter->data);
g_slist_free (priv->chunks);
priv->chunks = priv->last = NULL;
+ priv->base_offset = 0;
if (priv->flattened) {
soup_buffer_free (priv->flattened);