dovecot-2.2: fts-lucene: Fixed "doveadm dump" crash when built w...

dovecot at dovecot.org dovecot at dovecot.org
Thu Apr 17 14:35:37 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/7809bc519633
changeset: 17241:7809bc519633
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Apr 17 16:35:05 2014 +0200
description:
fts-lucene: Fixed "doveadm dump" crash when built with stemmer

diffstat:

 src/plugins/fts-lucene/lucene-wrapper.cc |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 7c12201decaf -r 7809bc519633 src/plugins/fts-lucene/lucene-wrapper.cc
--- a/src/plugins/fts-lucene/lucene-wrapper.cc	Thu Apr 17 16:18:02 2014 +0200
+++ b/src/plugins/fts-lucene/lucene-wrapper.cc	Thu Apr 17 16:35:05 2014 +0200
@@ -119,7 +119,7 @@
 		index->set.default_language = "";
 	}
 #ifdef HAVE_LUCENE_STEMMER
-	if (!set->no_snowball) {
+	if (set == NULL || !set->no_snowball) {
 		index->default_analyzer =
 			_CLNEW snowball::SnowballAnalyzer(index->normalizer,
 							  index->set.default_language);


More information about the dovecot-cvs mailing list