From 29640f69a8ba3211f384abca32b57b6c3faaf75e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 19 Mar 2008 23:33:01 +0100 Subject: [PATCH] Produce only once in MARCXML printing. --- util/marcdump.c | 9 --------- 1 file changed, 9 deletions(-) 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); } -- 1.7.10.4