From: Adam Dickmeiss Date: Mon, 26 Jul 2004 13:51:42 +0000 (+0000) Subject: Fix bug in data1_tag_add_attr (bug introduced in last commit) X-Git-Tag: ZEBRA.1.3.16~30 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=52da039ed3c4af86925c563b9a63f1f1fee1a4d5;p=idzebra-moved-to-github.git Fix bug in data1_tag_add_attr (bug introduced in last commit) --- diff --git a/data1/d1_read.c b/data1/d1_read.c index c1e8860..1c494d9 100644 --- a/data1/d1_read.c +++ b/data1/d1_read.c @@ -1,4 +1,4 @@ -/* $Id: d1_read.c,v 1.7 2004-07-26 12:20:07 adam Exp $ +/* $Id: d1_read.c,v 1.8 2004-07-26 13:51:42 adam Exp $ Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003,2004 Index Data Aps @@ -301,14 +301,10 @@ data1_node *data1_mk_tag_n (data1_handle dh, NMEM nmem, void data1_tag_add_attr (data1_handle dh, NMEM nmem, data1_node *res, const char **attr) { - data1_xattr **p; - if (res->which != DATA1N_tag) return; - p = &res->u.tag.attributes; - data1_add_attrs(dh, nmem, attr, p); - *p = 0; + data1_add_attrs(dh, nmem, attr, &res->u.tag.attributes); } data1_node *data1_mk_tag (data1_handle dh, NMEM nmem,