X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstpquery.c;h=82fbd30c119fc01da3ab319064c6cbe7b461971d;hb=e6f45fddb3d4267340ad320dbedfbf5cb68c4d21;hp=1084626c62386315e018908ed5037c70cd55bfb7;hpb=9dfcbb70828f8d5b524c9bb45852246ae1dd6878;p=yaz-moved-to-github.git diff --git a/test/tstpquery.c b/test/tstpquery.c index 1084626..82fbd30 100644 --- a/test/tstpquery.c +++ b/test/tstpquery.c @@ -1,8 +1,8 @@ /* - * Copyright (C) 1995-2005, Index Data ApS + * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: tstpquery.c,v 1.3 2006-10-04 16:59:34 mike Exp $ + * $Id: tstpquery.c,v 1.5 2007-03-19 14:40:07 adam Exp $ */ #include @@ -45,9 +45,9 @@ int expect_pqf(const char *pqf, const char *expect_pqf, int expect_error) { yaz_rpnquery_to_wrbuf(wrbuf, rpn); - if (!strcmp(wrbuf_buf(wrbuf), expect_pqf)) + if (!strcmp(wrbuf_cstr(wrbuf), expect_pqf)) res = 1; - wrbuf_free(wrbuf, 1); + wrbuf_destroy(wrbuf); } } yaz_pqf_destroy(parser);