From: Adam Dickmeiss Date: Mon, 8 Sep 2003 10:26:51 +0000 (+0000) Subject: data1_concat_text didnt set last_child right in all cases X-Git-Tag: ZEBRA.1.3.12~1 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=f280b4adca76b5b447dae9d6a01ff1f9067c08b9;p=idzebra-moved-to-github.git data1_concat_text didnt set last_child right in all cases --- diff --git a/data1/d1_read.c b/data1/d1_read.c index 09d7c52..6e179d9 100644 --- a/data1/d1_read.c +++ b/data1/d1_read.c @@ -1,5 +1,5 @@ -/* $Id: d1_read.c,v 1.4 2003-05-05 20:13:29 adam Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002 +/* $Id: d1_read.c,v 1.5 2003-09-08 10:26:51 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003 Index Data Aps This file is part of the Zebra server. @@ -1132,6 +1132,9 @@ void data1_concat_text(data1_handle dh, NMEM m, data1_node *n) n->u.data.data = ndata; n->u.data.len = sz; n->next = np; + if (!np && n->parent) + n->parent->last_child = n; + } data1_concat_text(dh, m, n->child); }