* Copyright (c) 1998-2003, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-z-query.cpp,v 1.13 2003-10-03 13:01:42 adam Exp $
+ * $Id: yaz-z-query.cpp,v 1.15 2003-12-20 22:42:53 adam Exp $
*/
#include <yaz++/z-query.h>
}
else
strcpy(str, wrbuf_buf(wbuf));
+ wrbuf_free(wbuf,1);
}
odr_reset(odr_decode);
- wrbuf_free(wbuf,1);
}
int Yaz_Z_Query::match(Yaz_Z_Query *other)
WRBUF Yaz_Z_Query::zquery2pquery(Z_Query *q)
{
- WRBUF buf = wrbuf_alloc();
-
if (q->which != Z_Query_type_1 && q->which != Z_Query_type_101)
return 0;
+ WRBUF buf = wrbuf_alloc();
if (q->u.type_1->attributeSetId) {
/* Output attribute set ID */
wrbuf_puts(buf, "@attrset ");