projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67263ad
)
record_conv: fix error handling for marc charsets mis
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 8 Mar 2012 08:19:58 +0000
(09:19 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 8 Mar 2012 08:19:58 +0000
(09:19 +0100)
Fix really brain damaged error handling of marc charset check.
src/record_conv.c
patch
|
blob
|
history
diff --git
a/src/record_conv.c
b/src/record_conv.c
index
bf3c362
..
a272aee
100644
(file)
--- 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 <marc>: "
"attribute 'outputcharset' missing");
nmem_destroy(info->nmem);
return 0;
}
- else if (info->output_charset)
+ else if (!info->input_charset)
{
wrbuf_printf(wr_error, "Element <marc>: "
"attribute 'inputcharset' missing");