From 2614d567118004072591ae55a387d2cbb1d18130 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 12 Nov 2012 11:21:49 +0100 Subject: [PATCH] yaz-client: display facets Initialize yaz_facet_attr properly. --- client/client.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/client.c b/client/client.c index bbce995..5e7f270 100644 --- a/client/client.c +++ b/client/client.c @@ -1698,11 +1698,7 @@ static void display_facet(Z_FacetField *facet) { Z_AttributeList *al = facet->attributes; struct yaz_facet_attr attr_values; - attr_values.errcode = 0; - attr_values.limit = -1; - attr_values.useattr = "NONE"; - attr_values.relation = "default"; - + yaz_facet_attr_init(&attr_values); yaz_facet_attr_get_z_attributes(al, &attr_values); if (!attr_values.errcode) { -- 1.7.10.4