From dbfa7d133bf33952be14064ac98b37674f9d717b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 14 May 1996 15:49:09 +0000 Subject: [PATCH] Bug fix: In function split_page. In rare cases variable best_indxp was referenced. --- dict/insert.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dict/insert.c b/dict/insert.c index b3b6a47..ce41de7 100644 --- a/dict/insert.c +++ b/dict/insert.c @@ -1,10 +1,14 @@ /* - * Copyright (C) 1994, Index Data I/S + * Copyright (C) 1994-1996, Index Data I/S * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: insert.c,v $ - * Revision 1.16 1996-02-02 13:43:50 adam + * Revision 1.17 1996-05-14 15:49:09 adam + * Bug fix: In function split_page. In rare cases variable best_indxp was + * referenced. + * + * Revision 1.16 1996/02/02 13:43:50 adam * The public functions simply use char instead of Dict_char to represent * search strings. Dict_char is used internally only. * @@ -127,6 +131,7 @@ static int split_page (Dict dict, Dict_ptr ptr, void *p) { /* first entry met */ best_char = prev_char = dc; best_no = 1; + best_indxp = indxp; } else if (prev_char == dc) { /* same char prefix. update */ -- 1.7.10.4