From: Adam Dickmeiss Date: Fri, 31 Mar 2006 08:51:26 +0000 (+0000) Subject: In zebra_register_open, only call zebraExplain_open if all previous X-Git-Tag: before.bug.529~184 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=cc74bd253ed898cd5b94826912cbc1ca1c940387 In zebra_register_open, only call zebraExplain_open if all previous calls are succesful (ZEBRA_OK). --- diff --git a/index/zebraapi.c b/index/zebraapi.c index c91b5b2..35d02d8 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,4 +1,4 @@ -/* $Id: zebraapi.c,v 1.208 2006-03-29 10:43:24 adam Exp $ +/* $Id: zebraapi.c,v 1.209 2006-03-31 08:51:26 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -459,7 +459,7 @@ struct zebra_register *zebra_register_open(ZebraService zs, const char *name, ret = ZEBRA_FAIL; } } - if (reg->records) + if (ret == ZEBRA_OK) { reg->zei = zebraExplain_open(reg->records, reg->dh, res, rw, reg,