From: Adam Dickmeiss Date: Tue, 14 May 2002 21:12:56 +0000 (+0000) Subject: Minor fix for isamb X-Git-Tag: ZEBRA.1.3.0~56 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=b037a54d0613cebff411506dd9f54262394642e6 Minor fix for isamb --- diff --git a/isamb/isamb.c b/isamb/isamb.c index ff09070..c9def6a 100644 --- a/isamb/isamb.c +++ b/isamb/isamb.c @@ -2,7 +2,7 @@ * Copyright (c) 2000-2002, Index Data. * See the file LICENSE for details. * - * $Id: isamb.c,v 1.14 2002-05-06 17:45:21 adam Exp $ + * $Id: isamb.c,v 1.15 2002-05-14 21:12:56 adam Exp $ */ #include #include @@ -386,7 +386,7 @@ int insert_leaf (ISAMB b, struct ISAMB_block **sp1, void *lookahead_item, lookahead_item = 0; more = 0; } - if (max_item && + if (lookahead_item && max_item && (*b->method->compare_item)(max_item, lookahead_item) <= 0) { yaz_log (LOG_LOG, "max_item 1");