From cc74bd253ed898cd5b94826912cbc1ca1c940387 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 31 Mar 2006 08:51:26 +0000 Subject: [PATCH] In zebra_register_open, only call zebraExplain_open if all previous calls are succesful (ZEBRA_OK). --- index/zebraapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 1.7.10.4