[dovecot-cvs] dovecot/src/lib-index/mbox mbox-lock.c,1.22,1.23
cras at procontrol.fi
cras at procontrol.fi
Fri Jan 10 13:22:52 EET 2003
Update of /home/cvs/dovecot/src/lib-index/mbox
In directory danu:/tmp/cvs-serv29591/lib-index/mbox
Modified Files:
mbox-lock.c
Log Message:
Don't crash if lock_notify_func isn't set.
Index: mbox-lock.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mbox/mbox-lock.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- mbox-lock.c 5 Jan 2003 13:09:52 -0000 1.22
+++ mbox-lock.c 10 Jan 2003 11:22:50 -0000 1.23
@@ -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 +
More information about the dovecot-cvs
mailing list