From: Timo Sirainen Date: Thu, 9 Dec 2010 11:16:24 +0000 (+0000) Subject: lib-storage: Added assert check to make sure we never do timeout_add(0) X-Git-Tag: 2.0.9~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c599385acbcde8cf64541cf0ce0f1ec2d868a18c;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: Added assert check to make sure we never do timeout_add(0) --- diff --git a/src/lib-storage/index/index-mailbox-check.c b/src/lib-storage/index/index-mailbox-check.c index 8c50d6b3d1..948de7ab1e 100644 --- a/src/lib-storage/index/index-mailbox-check.c +++ b/src/lib-storage/index/index-mailbox-check.c @@ -72,6 +72,8 @@ void index_mailbox_check_add(struct mailbox *box, const char *path) 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);