From c16b638200ede4f4130c93906a000d0cfbcd9c95 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 25 May 2004 10:21:25 +0000 Subject: [PATCH] Always set parent member in data1_node --- data1/d1_read.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data1/d1_read.c b/data1/d1_read.c index 6e179d9..4fb3ecb 100644 --- a/data1/d1_read.c +++ b/data1/d1_read.c @@ -1,5 +1,5 @@ -/* $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 +/* $Id: d1_read.c,v 1.6 2004-05-25 10:21:25 adam Exp $ + Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps This file is part of the Zebra server. @@ -128,13 +128,13 @@ data1_node *data1_append_node (data1_handle dh, NMEM m, int type, data1_node *r = (data1_node *)nmem_malloc(m, sizeof(*r)); r->next = r->child = r->last_child = 0; r->destroy = 0; - + + r->parent = parent; if (!parent) r->root = r; else { r->root = parent->root; - r->parent = parent; if (!parent->child) parent->child = parent->last_child = r; else -- 1.7.10.4