dovecot: squat_trie_lookup(): Make sure we clear result arrays f...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jan 14 07:17:31 EET 2008


details:   http://hg.dovecot.org/dovecot/rev/b2333f0f23af
changeset: 7161:b2333f0f23af
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jan 14 07:17:19 2008 +0200
description:
squat_trie_lookup(): Make sure we clear result arrays first.

diffstat:

1 file changed, 3 insertions(+)
src/plugins/fts-squat/squat-trie.c |    3 +++

diffs (13 lines):

diff -r f1220b37d7f7 -r b2333f0f23af src/plugins/fts-squat/squat-trie.c
--- a/src/plugins/fts-squat/squat-trie.c	Mon Jan 14 06:52:53 2008 +0200
+++ b/src/plugins/fts-squat/squat-trie.c	Mon Jan 14 07:17:19 2008 +0200
@@ -1630,6 +1630,9 @@ squat_trie_lookup_real(struct squat_trie
 	unsigned int i, start, bytes, str_bytelen, str_charlen;
 	int ret = 0;
 
+	array_clear(definite_uids);
+	array_clear(maybe_uids);
+
 	memset(&ctx, 0, sizeof(ctx));
 	ctx.trie = trie;
 	ctx.type = type;


More information about the dovecot-cvs mailing list