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:
79c68f7
)
yaz-marcdump: exit(4) if write using Libxml2's bad
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 23 Mar 2010 12:03:26 +0000
(13:03 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 23 Mar 2010 12:03:26 +0000
(13:03 +0100)
util/marcdump.c
patch
|
blob
|
history
diff --git
a/util/marcdump.c
b/util/marcdump.c
index
935bed1
..
c30623a
100644
(file)
--- a/
util/marcdump.c
+++ b/
util/marcdump.c
@@
-443,8
+443,14
@@
int main (int argc, char **argv)
rather than WRBUF */
if (strlen(arg) > 4 && strncmp(arg, "xml,", 4) == 0)
{
+ /* Only supported for Libxml2 2.6.0 or later */
+#if LIBXML_VERSION >= 20600
arg = arg + 4;
write_using_libxml2 = 1;
+#else
+ fprintf(stderr, "%s: output using Libxml2 unsupported\n", prog);
+ exit(4);
+#endif
}
output_format = yaz_marc_decode_formatstr(arg);
if (output_format == -1)