From b8fb4eb27d68440734216fbbff39ccbe0901ea8b Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 16 Sep 2003 20:49:51 +0000 Subject: [PATCH] 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. --- camel/ChangeLog | 7 +++++++ camel/camel-stream-filter.c | 6 ++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 7f898f9..b1f422c 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 3d38860..059a519 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; -- 2.7.4