dovecot-2.1: imapc: Added assert to make sure callback is never ...

dovecot at dovecot.org dovecot at dovecot.org
Tue Nov 22 11:29:21 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/3501e62284dc
changeset: 13746:3501e62284dc
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Nov 22 11:29:17 2011 +0200
description:
imapc: Added assert to make sure callback is never NULL.

diffstat:

 src/lib-imap-client/imapc-connection.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r da07002ca0d4 -r 3501e62284dc src/lib-imap-client/imapc-connection.c
--- a/src/lib-imap-client/imapc-connection.c	Tue Nov 22 11:28:33 2011 +0200
+++ b/src/lib-imap-client/imapc-connection.c	Tue Nov 22 11:29:17 2011 +0200
@@ -1394,6 +1394,8 @@
 	struct imapc_command *cmd;
 	pool_t pool;
 
+	i_assert(callback != NULL);
+
 	pool = pool_alloconly_create("imapc command", 2048);
 	cmd = p_new(pool, struct imapc_command, 1);
 	cmd->pool = pool;


More information about the dovecot-cvs mailing list