dovecot-2.0: lib-storage: Added assert check to make sure we nev...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Dec 9 13:16:27 EET 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/694ef2d76d51
changeset: 12522:694ef2d76d51
user: Timo Sirainen <tss at iki.fi>
date: Thu Dec 09 11:16:24 2010 +0000
description:
lib-storage: Added assert check to make sure we never do timeout_add(0)
diffstat:
src/lib-storage/index/index-mailbox-check.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r 7353e3253840 -r 694ef2d76d51 src/lib-storage/index/index-mailbox-check.c
--- a/src/lib-storage/index/index-mailbox-check.c Wed Dec 08 23:17:11 2010 +0000
+++ b/src/lib-storage/index/index-mailbox-check.c Thu Dec 09 11:16:24 2010 +0000
@@ -72,6 +72,8 @@
struct io *io = NULL;
struct index_notify_io *aio;
+ i_assert(box->notify_min_interval > 0);
+
(void)io_add_notify(path, notify_callback, box, &io);
if (io != NULL) {
aio = i_new(struct index_notify_io, 1);
More information about the dovecot-cvs
mailing list