From 2e8277ab9c32d32ac776f7164828ef016cf06860 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 8 Mar 2012 09:19:58 +0100 Subject: [PATCH] record_conv: fix error handling for marc charsets mis Fix really brain damaged error handling of marc charset check. --- src/record_conv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/record_conv.c b/src/record_conv.c index bf3c362..a272aee 100644 --- a/src/record_conv.c +++ b/src/record_conv.c @@ -374,14 +374,14 @@ static void *construct_marc(const xmlNode *ptr, } yaz_iconv_close(cd); } - else if (info->input_charset) + else if (!info->output_charset) { wrbuf_printf(wr_error, "Element : " "attribute 'outputcharset' missing"); nmem_destroy(info->nmem); return 0; } - else if (info->output_charset) + else if (!info->input_charset) { wrbuf_printf(wr_error, "Element : " "attribute 'inputcharset' missing"); -- 1.7.10.4