From 6ba2b233baf29688eb6e311f44a623890b604f3d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 18 Dec 2007 10:04:15 +0000 Subject: [PATCH] Allow 'index' setting value 'none' for no index types. Using index:none in zebra.cfg is treated specially and is now allowed to be used to specify 'no index types specified'. --- index/zebraapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index/zebraapi.c b/index/zebraapi.c index d06dfe1..f709ee6 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,4 +1,4 @@ -/* $Id: zebraapi.c,v 1.265 2007-11-30 12:19:08 adam Exp $ +/* $Id: zebraapi.c,v 1.266 2007-12-18 10:04:15 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -421,7 +421,7 @@ struct zebra_register *zebra_register_open(ZebraService zs, const char *name, { const char *index_fname = res_get_def(res, "index", "default.idx"); - if (index_fname && *index_fname) + if (index_fname && *index_fname && strcmp(index_fname, "none")) { if (zebra_maps_read_file(reg->zebra_maps, index_fname) != ZEBRA_OK) ret = ZEBRA_FAIL; -- 1.7.10.4