[dovecot-cvs] dovecot/src/lib istream-data.c,1.17,1.18

tss at dovecot.org tss at dovecot.org
Sat Mar 31 13:06:20 EEST 2007


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

Modified Files:
	istream-data.c 
Log Message:
fix



Index: istream-data.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/istream-data.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- istream-data.c	31 Mar 2007 08:32:32 -0000	1.17
+++ istream-data.c	31 Mar 2007 10:06:18 -0000	1.18
@@ -36,11 +36,12 @@
 	stream->iostream.close = _close;
 	stream->iostream.destroy = _destroy;
 
-	stream->statbuf.st_size = size;
 	stream->read = _read;
 	stream->seek = _seek;
 
 	stream->istream.blocking = TRUE;
 	stream->istream.seekable = TRUE;
-	return _i_stream_create(stream, pool, -1, 0);
+	(void)_i_stream_create(stream, pool, -1, 0);
+	stream->statbuf.st_size = size;
+	return &stream->istream;
 }



More information about the dovecot-cvs mailing list