From ae79d335837be56e234704d5a8cca9c7e685984e Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 16 Sep 2003 20:49:51 +0000 Subject: Don't warning about how we haven't written anything to the stream, this is 2003-09-16 Jeffrey Stedfast * 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. svn path=/trunk/; revision=22590 --- camel/ChangeLog | 7 +++++++ camel/camel-stream-filter.c | 6 ++---- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'camel') 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 + + * 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 * 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; -- cgit v1.2.3