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:

committed by
Jeffrey Stedfast

parent
d6a1f02c1a
commit
ae79d33583
@ -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)
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user