From b037a54d0613cebff411506dd9f54262394642e6 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 14 May 2002 21:12:56 +0000 Subject: [PATCH] Minor fix for isamb --- isamb/isamb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); -- 1.7.10.4