[dovecot-cvs] dovecot/src/lib ostream-file.c,1.35,1.36

cras at dovecot.org cras at dovecot.org
Tue Sep 21 00:27:46 EEST 2004


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv7188

Modified Files:
	ostream-file.c 
Log Message:
If we couldn't send any bytes, don't reset buffer's full-flag.



Index: ostream-file.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ostream-file.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- ostream-file.c	16 Sep 2004 14:59:29 -0000	1.35
+++ ostream-file.c	20 Sep 2004 21:27:43 -0000	1.36
@@ -96,7 +96,7 @@
 {
 	size_t used;
 
-	if (IS_STREAM_EMPTY(fstream))
+	if (IS_STREAM_EMPTY(fstream) || size == 0)
 		return;
 
 	if (fstream->head < fstream->tail) {



More information about the dovecot-cvs mailing list