X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ffacet.c;h=a9a5625b0b761a4e8c890fb9f309a68723ca0296;hb=4849119cd60244ee5ed16958e885bc97315d23ad;hp=e4e787c2acd26926b8cf44f7d4ff5dcb36ec6735;hpb=3e45202a276daf769ce4727bc47147a1e669d4b1;p=yaz-moved-to-github.git diff --git a/src/facet.c b/src/facet.c index e4e787c..a9a5625 100644 --- a/src/facet.c +++ b/src/facet.c @@ -51,9 +51,8 @@ Z_FacetList *yaz_oi_get_facetlist(Z_OtherInformation **otherInformation) return 0; z_external = oi->information.externallyDefinedInfo; - if (z_external && z_external->which == Z_External_userFacets) { + if (z_external && z_external->which == Z_External_userFacets) return z_external->u.facetList; - } return 0; } @@ -169,7 +168,8 @@ void yaz_facet_attr_get_z_attributes(const Z_AttributeList *attributes, { int i; Z_AttributeElement *ae; - for (i=0; i < attributes->num_attributes; i++) { + for (i = 0; i < attributes->num_attributes; i++) + { ae = attributes->attributes[i]; /* ignoring the attributeSet here */ if (*ae->attributeType == 1)