X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftst_query_charset.c;h=97af4172a5bf352ee042314c697d8f4ad481e0fe;hp=c597e653ae6cfee711f07417bb35415d0cd1a7f7;hb=638b4a01b1bf9e1306b215dc0b400b0696631e15;hpb=3bfe867a001cb4e4f88d47541f77a21027719bd5 diff --git a/test/tst_query_charset.c b/test/tst_query_charset.c index c597e65..97af417 100644 --- a/test/tst_query_charset.c +++ b/test/tst_query_charset.c @@ -1,14 +1,13 @@ -/* - * Copyright (C) 1995-2007, Index Data ApS +/* This file is part of the YAZ toolkit. + * Copyright (C) 1995-2008 Index Data * See the file LICENSE for details. - * - * $Id: tst_query_charset.c,v 1.1 2007-04-10 14:42:31 adam Exp $ */ #include #include #include +#include #include #include #include @@ -42,7 +41,10 @@ enum query_charset_status t(yaz_iconv_t cd, else { WRBUF w = wrbuf_alloc(); + Z_RPNQuery *r2 = yaz_copy_z_RPNQuery(rpn, odr); + YAZ_CHECK(r2); + YAZ_CHECK(r2 != rpn); yaz_query_charset_convert_rpnquery(rpn, odr, cd); yaz_rpnquery_to_wrbuf(w, rpn); if (!expect_pqf || strcmp(expect_pqf, wrbuf_cstr(w)) == 0)