From 81e8452cbfb569a63a07676b0dc7e32ea8343c5a Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Tue, 20 Jul 2010 18:01:52 +0200 Subject: [PATCH] Fix: use the given OtherInformation. Also set the term when creating the Z_Term --- src/facet.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/facet.c b/src/facet.c index 37074fe..40b7bcb 100644 --- a/src/facet.c +++ b/src/facet.c @@ -124,9 +124,7 @@ void facetattrs( Z_AttributeList *attributes, Z_FacetList *extract_facet_request(ODR odr, Z_OtherInformation *search_input) { - Z_OtherInformation **oi; - Z_FacetList *facet_list = yaz_oi_get_facetlist_oid(oi, odr, yaz_oid_userinfo_facet_1, 1, 0); - + Z_FacetList *facet_list = yaz_oi_get_facetlist_oid(&search_input, odr, yaz_oid_userinfo_facet_1, 1, 0); return facet_list; } @@ -140,6 +138,7 @@ Z_Term *term_create(ODR odr, const char *cstr) { Z_FacetTerm* facet_term_create(ODR odr, Z_Term *term, int freq) { Z_FacetTerm *facet_term = odr_malloc(odr, sizeof(*facet_term)); facet_term->count = odr_malloc(odr, sizeof(*facet_term->count)); + facet_term->term = term; *facet_term->count = freq; return facet_term; } -- 1.7.10.4