From 6f64e76889c37909ac321a6149cbe45777e7688c Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 4 Aug 2010 10:38:21 +0200 Subject: [PATCH] yaz-client: otherinfo missing if facet is in use Do not skip index 0 of user-defined otherinfos if facets is in use. --- client/client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/client.c b/client/client.c index a3442dc..c6c1ab3 100644 --- a/client/client.c +++ b/client/client.c @@ -245,14 +245,13 @@ static void do_hex_dump(const char* buf, size_t len) void add_otherInfos(Z_APDU *a) { Z_OtherInformation **oi; - int i = 0; + int i; yaz_oi_APDU(a, &oi); if (facet_list) { yaz_oi_set_facetlist_oid(oi, out, yaz_oid_userinfo_facet_1, 1, facet_list); - i++; } - for(; i 0) yaz_oi_set_string_oid(oi, out, extraOtherInfos[i].oid, -- 1.7.10.4