diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-09-17 04:49:51 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-09-17 04:49:51 +0800 |
commit | ae79d335837be56e234704d5a8cca9c7e685984e (patch) | |
tree | 2eaaa0e05b5458d7fc3441236302773c02794d1b /camel/camel-stream-filter.c | |
parent | d6a1f02c1a8a04c16ab20b268e0553d528f2a180 (diff) | |
download | gsoc2013-evolution-ae79d335837be56e234704d5a8cca9c7e685984e.tar.gz gsoc2013-evolution-ae79d335837be56e234704d5a8cca9c7e685984e.tar.zst gsoc2013-evolution-ae79d335837be56e234704d5a8cca9c7e685984e.zip |
Don't warning about how we haven't written anything to the stream, this is
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.
svn path=/trunk/; revision=22590
Diffstat (limited to 'camel/camel-stream-filter.c')
-rw-r--r-- | camel/camel-stream-filter.c | 6 |
1 files changed, 2 insertions, 4 deletions
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; |