diff options
Diffstat (limited to 'camel/camel-mime-part.c')
-rw-r--r-- | camel/camel-mime-part.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/camel/camel-mime-part.c b/camel/camel-mime-part.c index 30c08a485f..6e2276df90 100644 --- a/camel/camel-mime-part.c +++ b/camel/camel-mime-part.c @@ -504,14 +504,11 @@ write_to_stream (CamelDataWrapper *data_wrapper, CamelStream *stream) } } - content = camel_medium_get_content_object (medium); - - if (!CAMEL_IS_MEDIUM (content)) { - if ( (count = camel_stream_write_string(stream,"\n")) == -1) - return -1; - total += count; - } + if ( (count = camel_stream_write_string(stream,"\n")) == -1) + return -1; + total += count; + content = camel_medium_get_content_object (medium); if (content) { if ( (count = camel_data_wrapper_write_to_stream(content, stream)) == -1 ) return -1; |