X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Frecord_conv.c;h=a272aee66f2e2e8e46f6704e209d436d9bb20be7;hp=bf3c36218d728d9c05659721194b85ecc9a167ad;hb=2e8277ab9c32d32ac776f7164828ef016cf06860;hpb=67263adf9c8efbd384b09ec71b98844ce7c7d2bf 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");