changeset 8506:52f95ea3932b HEAD

fts: Don't crash if using both X-TEXT-FAST and TEXT in the same query without substr fts.
author Timo Sirainen <tss@iki.fi>
date Sun, 30 Nov 2008 15:49:42 +0200
parents 5cc1c4f3d38b
children f323bf2465bd
files src/plugins/fts/fts-search.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/fts/fts-search.c	Sun Nov 30 15:44:19 2008 +0200
+++ b/src/plugins/fts/fts-search.c	Sun Nov 30 15:49:42 2008 +0200
@@ -77,6 +77,8 @@
 			(arg->type == SEARCH_TEXT_FAST ||
 			 arg->type == SEARCH_BODY_FAST) ?
 			fctx->fbox->backend_fast : fctx->fbox->backend_substr;
+		if (backend == NULL)
+			return 0;
 		break;
 	default:
 		/* can't filter this */