X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=dict%2Finsert.c;h=ce41de7e066b2882e3af7973b7e9dd8cba0e8c8d;hb=eaa8c71186392f0d2a1ab714dc6f3f0a4da71d03;hp=b3b6a47bdfa546492977eb8549f3525032f2c2a0;hpb=b31a8654c5b7a597dd4a351f452ac91e5ef60798;p=idzebra-moved-to-github.git 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 */