diff options
Diffstat (limited to 'camel')
-rw-r--r-- | camel/ChangeLog | 4 | ||||
-rw-r--r-- | camel/camel-mime-part.c | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index d7cc92ddef..ef9fc3c95b 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,7 @@ +2000-08-31 Lauris Kaplinski <lauris@helixcode.com> + + * camel-mime-part.c (write_to-stream): Use filter only if we have one + 2000-08-31 Chris Toshok <toshok@helixcode.com> * providers/nntp/camel-nntp-utils.c (get_OVER_headers): use diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c index 9dba5162a4..f372240347 100644 --- a/camel/camel-mime-part.c +++ b/camel/camel-mime-part.c @@ -544,8 +544,12 @@ write_to_stream (CamelDataWrapper *data_wrapper, CamelStream *stream) camel_object_unref((CamelObject *)crlf); } - camel_stream_filter_add(filter_stream, filter); - camel_object_unref((CamelObject *)filter); + + if (filter) { + camel_stream_filter_add(filter_stream, filter); + camel_object_unref((CamelObject *)filter); + } + stream = (CamelStream *)filter_stream; } |