yaz-client: display facets
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 12 Nov 2012 10:21:49 +0000 (11:21 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 12 Nov 2012 10:21:49 +0000 (11:21 +0100)
Initialize yaz_facet_attr properly.

client/client.c

index bbce995..5e7f270 100644 (file)
@@ -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)
         {