diff options
-rw-r--r-- | camel/ChangeLog | 7 | ||||
-rw-r--r-- | camel/camel-stream-filter.c | 6 |
2 files changed, 9 insertions, 4 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 7f898f9d54..b1f422cf9d 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,10 @@ +2003-09-16 Jeffrey Stedfast <fejj@ximian.com> + + * camel-stream-filter.c (do_flush): Don't warning about how we + haven't written anything to the stream, this is not an + error. fflush() doesn't care if you try to fflush() a stream + without writing to it, so we shouldn't care either. + 2003-09-15 Not Zed <NotZed@Ximian.com> * providers/imapp/camel-imapp-store.c (store_resp_list) diff --git a/camel/camel-stream-filter.c b/camel/camel-stream-filter.c index 3d38860ade..059a5198f1 100644 --- a/camel/camel-stream-filter.c +++ b/camel/camel-stream-filter.c @@ -331,11 +331,9 @@ do_flush (CamelStream *stream) size_t presize; size_t len; - if (p->last_was_read) { - g_warning("Flushing a filter stream without writing to it"); + if (p->last_was_read) return 0; - } - + buffer = ""; len = 0; presize = 0; |