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
This commit is contained in:
Jeffrey Stedfast
2003-09-16 20:49:51 +00:00
committed by Jeffrey Stedfast
parent d6a1f02c1a
commit ae79d33583
2 changed files with 9 additions and 4 deletions

View File

@ -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)

View File

@ -331,10 +331,8 @@ 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;