X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=util%2Fyaz-xmlquery.c;h=4428f4608bd049e0f4c489b349871ff02f41bba6;hp=241a4e72344790968b82651affdb784c7fda191b;hb=1a219938c1325105582cdbc2c9a34b6fc3cdf191;hpb=d0e351c12fff564d876958e860338d43716dc269 diff --git a/util/yaz-xmlquery.c b/util/yaz-xmlquery.c index 241a4e7..4428f46 100644 --- a/util/yaz-xmlquery.c +++ b/util/yaz-xmlquery.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ #if HAVE_CONFIG_H @@ -13,7 +13,7 @@ #include #include #include -#include +#include #if YAZ_HAVE_XML2 #include @@ -52,9 +52,9 @@ void pqftoxmlquery(const char *pqf) else { xmlDocPtr doc = 0; - + yaz_rpnquery2xml(rpn, &doc); - + if (!doc) { fprintf(stderr, "%s: yaz_rpnquery2xml failed for query %s\n", @@ -84,7 +84,7 @@ void pqftoxmlquery(const char *pqf) } xmlFreeDoc(doc); } - } + } odr_destroy(odr); } @@ -162,7 +162,7 @@ void xmlfiletopqf(const char *xmlfile) fprintf(stderr, "%s: close failed for file %s\n", prog, xmlfile); exit(1); } - + xmlquerytopqf(xmlstr); xfree(xmlstr); } @@ -183,6 +183,7 @@ int main (int argc, char **argv) int r; int active = 0; + yaz_enable_panic_backtrace(*argv); while ((r = options("-p:x:", argv, argc, &arg)) != -2) { switch(r)