dovecot: Don't show extensions for records if their record size ...

dovecot at dovecot.org dovecot at dovecot.org
Mon Aug 13 20:05:48 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/10a5f61d9692
changeset: 6294:10a5f61d9692
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Aug 13 20:05:41 2007 +0300
description:
Don't show extensions for records if their record size is 0.

diffstat:

1 file changed, 2 insertions(+)
src/util/idxview.c |    2 ++

diffs (12 lines):

diff -r aa8d0440b890 -r 10a5f61d9692 src/util/idxview.c
--- a/src/util/idxview.c	Mon Aug 13 20:04:43 2007 +0300
+++ b/src/util/idxview.c	Mon Aug 13 20:05:41 2007 +0300
@@ -418,6 +418,8 @@ static int dump_record(int fd, void *buf
 	str = t_str_new(256);
 	ext = array_get(&extensions, &ext_count);
 	for (i = 0; i < ext_count; i++) {
+		if (ext[i].record_size == 0)
+			continue;
 		str_truncate(str, 0);
 		str_printfa(str, " - ext %s(%u): ", ext[i].name, i);
 


More information about the dovecot-cvs mailing list