From: Adam Dickmeiss Date: Tue, 29 Jun 2010 09:24:42 +0000 (+0200) Subject: Fix bug #3405: Extra data in MARC after conv X-Git-Tag: v2.0.44~1 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=1895d4f884802edff2e8b594297bffb0ef80b8bd;p=idzebra-moved-to-github.git Fix bug #3405: Extra data in MARC after conv --- diff --git a/data1/d1_marc.c b/data1/d1_marc.c index 839eee9..22bb78d 100644 --- a/data1/d1_marc.c +++ b/data1/d1_marc.c @@ -189,7 +189,7 @@ static void get_data2(data1_node *n, int *len, char *dst, size_t max) } *len += n->u.data.len; } - if (n->which == DATA1N_tag) + if (n->which == DATA1N_tag && *len == 0) n = n->child; else if (n->which == DATA1N_data) n = n->next;