From: Adam Dickmeiss Date: Wed, 19 Mar 2008 22:33:01 +0000 (+0100) Subject: Produce only once in MARCXML printing. X-Git-Tag: v3.0.30~69 X-Git-Url: http://sru.miketaylor.org.uk/?a=commitdiff_plain;h=29640f69a8ba3211f384abca32b57b6c3faaf75e;p=yaz-moved-to-github.git Produce only once in MARCXML printing. --- diff --git a/util/marcdump.c b/util/marcdump.c index 03ae3a2..cb72a84 100644 --- a/util/marcdump.c +++ b/util/marcdump.c @@ -103,12 +103,6 @@ static void marcdump_read_line(yaz_marc_t mt, const char *fname) fputs(wrbuf_cstr(wrbuf), stdout); wrbuf_destroy(wrbuf); } - { - WRBUF wrbuf = wrbuf_alloc(); - yaz_marc_write_trailer(mt, wrbuf); - fputs(wrbuf_cstr(wrbuf), stdout); - wrbuf_destroy(wrbuf); - } fclose(inf); } @@ -147,8 +141,6 @@ static void marcdump_read_xml(yaz_marc_t mt, const char *fname) } } } - yaz_marc_write_trailer(mt, wrbuf); - fputs(wrbuf_cstr(wrbuf), stdout); } #else xmlDocPtr doc = xmlParseFile(fname); @@ -182,7 +174,6 @@ static void marcdump_read_xml(yaz_marc_t mt, const char *fname) xmlFreeDoc(doc); } #endif - yaz_marc_write_trailer(mt, wrbuf); fputs(wrbuf_cstr(wrbuf), stdout); wrbuf_destroy(wrbuf); }