aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-09-17 04:49:51 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-09-17 04:49:51 +0800
commitae79d335837be56e234704d5a8cca9c7e685984e (patch)
tree2eaaa0e05b5458d7fc3441236302773c02794d1b
parentd6a1f02c1a8a04c16ab20b268e0553d528f2a180 (diff)
downloadgsoc2013-evolution-ae79d335837be56e234704d5a8cca9c7e685984e.tar
gsoc2013-evolution-ae79d335837be56e234704d5a8cca9c7e685984e.tar.gz
gsoc2013-evolution-ae79d335837be56e234704d5a8cca9c7e685984e.tar.bz2
gsoc2013-evolution-ae79d335837be56e234704d5a8cca9c7e685984e.tar.lz
gsoc2013-evolution-ae79d335837be56e234704d5a8cca9c7e685984e.tar.xz
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
-rw-r--r--camel/ChangeLog7
-rw-r--r--camel/camel-stream-filter.c6
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;