X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftstpquery.c;h=82fbd30c119fc01da3ab319064c6cbe7b461971d;hp=f099862f7fc201678eaff5d7caa76291c71dfb27;hb=401da56d4a26f687cd42024bdef6f29a29bb7663;hpb=728ffb55e072933a1208780272e545c51f080e90 diff --git a/test/tstpquery.c b/test/tstpquery.c index f099862..82fbd30 100644 --- a/test/tstpquery.c +++ b/test/tstpquery.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: tstpquery.c,v 1.4 2007-01-03 08:42:16 adam 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);