dovecot-2.1: fts-lucene: Crashfix when compiled without stemmer.

dovecot at dovecot.org dovecot at dovecot.org
Wed Nov 23 17:01:59 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/90ecb83a9ca7
changeset: 13749:90ecb83a9ca7
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Nov 23 17:01:51 2011 +0200
description:
fts-lucene: Crashfix when compiled without stemmer.

diffstat:

 src/plugins/fts-lucene/fts-lucene-plugin.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r bfcd0bed5a9e -r 90ecb83a9ca7 src/plugins/fts-lucene/fts-lucene-plugin.c
--- a/src/plugins/fts-lucene/fts-lucene-plugin.c	Wed Nov 23 16:58:10 2011 +0200
+++ b/src/plugins/fts-lucene/fts-lucene-plugin.c	Wed Nov 23 17:01:51 2011 +0200
@@ -67,7 +67,9 @@
 {
 	uint32_t crc;
 
-	crc = crc32_str(set->default_language);
+	/* checksum is always different when compiling with/without stemmer */
+	crc = set->default_language == NULL ? 0 :
+		crc32_str(set->default_language);
 	crc = crc32_str_more(crc, set->whitespace_chars);
 	return crc;
 }


More information about the dovecot-cvs mailing list