[dovecot-cvs] dovecot/src/lib-index mail-transaction-log.c, 1.79,
1.80
cras at dovecot.org
cras at dovecot.org
Wed Dec 29 17:48:37 EET 2004
Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv25119/lib-index
Modified Files:
mail-transaction-log.c
Log Message:
Don't crash if keyword update doesn't actually have any keywords set.
Index: mail-transaction-log.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-transaction-log.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -d -r1.79 -r1.80
--- mail-transaction-log.c 26 Dec 2004 09:12:40 -0000 1.79
+++ mail-transaction-log.c 29 Dec 2004 15:48:35 -0000 1.80
@@ -1202,7 +1202,7 @@
kt = buffer_get_modifyable_data(t->keyword_updates, &size);
size /= sizeof(*kt);
for (i = 0; i < size; i++) {
- if (kt[i].messages == NULL)
+ if (kt[i].messages == NULL || kt[i].keywords.count == 0)
continue;
buffer_set_used_size(buf, 0);
More information about the dovecot-cvs
mailing list