From: Adam Dickmeiss Date: Wed, 2 Oct 2013 12:57:33 +0000 (+0200) Subject: Use version when generating explain req X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=048e879b5b65eb52b1b1a3cb0209bff7aa6ac310;p=yaz-moved-to-github.git Use version when generating explain req --- diff --git a/client/client.c b/client/client.c index 18c763a..eaa2335 100644 --- a/client/client.c +++ b/client/client.c @@ -2712,7 +2712,7 @@ static int cmd_explain(const char *arg) setno = 1; /* save this for later .. when fetching individual records */ - sr = yaz_srw_get(out, Z_SRW_explain_request); + sr = yaz_srw_get_pdu(out, Z_SRW_explain_request, sru_version); if (recordsyntax_size == 1 && !yaz_matchstr(recordsyntax_list[0], "xml")) sr->u.explain_request->recordPacking = "xml";