Mercurial > dovecot > core-2.2
changeset 938:54e2ef691f93 HEAD
Don't crash if lock_notify_func isn't set.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 10 Jan 2003 13:22:50 +0200 |
parents | b6a15094b8e1 |
children | 24b64302f59c |
files | src/lib-index/mbox/mbox-lock.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mbox/mbox-lock.c Fri Jan 10 13:02:10 2003 +0200 +++ b/src/lib-index/mbox/mbox-lock.c Fri Jan 10 13:22:50 2003 +0200 @@ -185,7 +185,8 @@ continue; } - if (last_notify != now) { + if (last_notify != now && + index->lock_notify_func != NULL) { last_notify = now; if (now > last_change + stale_notify) { secs_left = now - last_change +