From: Adam Dickmeiss Date: Wed, 4 Aug 2010 08:38:21 +0000 (+0200) Subject: yaz-client: otherinfo missing if facet is in use X-Git-Tag: v4.0.12~9^2~5 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=6f64e76889c37909ac321a6149cbe45777e7688c;p=yaz-moved-to-github.git yaz-client: otherinfo missing if facet is in use Do not skip index 0 of user-defined otherinfos if facets is in use. --- 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,