dovecot: Added assert.

dovecot at dovecot.org dovecot at dovecot.org
Sun Oct 21 15:28:57 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/06e3cff76570
changeset: 6587:06e3cff76570
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Oct 21 15:28:40 2007 +0300
description:
Added assert.

diffstat:

1 file changed, 2 insertions(+)
src/lib/ioloop.c |    2 ++

diffs (12 lines):

diff -r d6b2343238f9 -r 06e3cff76570 src/lib/ioloop.c
--- a/src/lib/ioloop.c	Sun Oct 21 15:13:28 2007 +0300
+++ b/src/lib/ioloop.c	Sun Oct 21 15:28:40 2007 +0300
@@ -67,6 +67,8 @@ void io_remove(struct io **_io)
 void io_remove(struct io **_io)
 {
 	struct io *io = *_io;
+
+	i_assert(io->callback != NULL);
 
 	*_io = NULL;
 


More information about the dovecot-cvs mailing list