From f280b4adca76b5b447dae9d6a01ff1f9067c08b9 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 8 Sep 2003 10:26:51 +0000 Subject: [PATCH] data1_concat_text didnt set last_child right in all cases --- data1/d1_read.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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); } -- 1.7.10.4