[libsoup] Reset priv->base_offset in soup_message_body_truncate()



commit 608b14e7fef529151e1a23963189f5a0ea22fade
Author: David Woodhouse <David Woodhouse intel com>
Date:   Mon Mar 21 14:02:27 2011 +0000

    Reset priv->base_offset in soup_message_body_truncate()

 libsoup/soup-message-body.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libsoup/soup-message-body.c b/libsoup/soup-message-body.c
index 1177030..689acf8 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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]