aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog3
-rw-r--r--camel/camel-mime-part.c11
2 files changed, 7 insertions, 7 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index b5ac3d1392..9adca603b9 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,8 @@
2000-04-27 Dan Winship <danw@helixcode.com>
+ * camel-mime-part.c (write_to_stream): Revert previous change. I
+ was confused.
+
* camel-url.[ch] (camel_url_encode, camel_url_decode): expose
these routines.
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;