dovecot-2.2: lib-http: Added assert.

dovecot at dovecot.org dovecot at dovecot.org
Sun Mar 10 20:38:40 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/81172305f1b2
changeset: 16014:81172305f1b2
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Mar 10 20:38:35 2013 +0200
description:
lib-http: Added assert.

diffstat:

 src/lib-http/http-client-request.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 59572bce44fe -r 81172305f1b2 src/lib-http/http-client-request.c
--- a/src/lib-http/http-client-request.c	Sun Mar 10 20:37:41 2013 +0200
+++ b/src/lib-http/http-client-request.c	Sun Mar 10 20:38:35 2013 +0200
@@ -301,6 +301,7 @@
 	off_t ret;
 
 	i_assert(req->payload_input != NULL);
+	i_assert(req->payload_output != NULL);
 
 	/* chunked ostream needs to write to the parent stream's buffer */
 	o_stream_set_max_buffer_size(output, IO_BLOCK_SIZE);


More information about the dovecot-cvs mailing list