projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7db9d0
)
yaz-client: display facets
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 12 Nov 2012 10:21:49 +0000
(11:21 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 12 Nov 2012 10:21:49 +0000
(11:21 +0100)
Initialize yaz_facet_attr properly.
client/client.c
patch
|
blob
|
history
diff --git
a/client/client.c
b/client/client.c
index
bbce995
..
5e7f270
100644
(file)
--- 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)
{