X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=util%2Fyaz-xmlquery.c;h=7ad6804a6a89f4fea7cf95d8a54c5f2b167d3a9a;hp=241a4e72344790968b82651affdb784c7fda191b;hb=f36abe0a776fa52b972a3fec1b46b94e26814f22;hpb=d0e351c12fff564d876958e860338d43716dc269 diff --git a/util/yaz-xmlquery.c b/util/yaz-xmlquery.c index 241a4e7..7ad6804 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 @@ -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); }