From 280940bf70395d3bccf45208efc302b6a7daf03e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 2 Oct 2013 14:57:33 +0200 Subject: [PATCH] Use version when generating explain req --- client/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client.c b/client/client.c index 97773d0..8043be1 100644 --- a/client/client.c +++ b/client/client.c @@ -2679,7 +2679,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"; -- 1.7.10.4