X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ffacet.c;h=a9a5625b0b761a4e8c890fb9f309a68723ca0296;hp=e4e787c2acd26926b8cf44f7d4ff5dcb36ec6735;hb=cc210c8334133d10df376ba1d914d34d96798e32;hpb=b57fc2b5c6741125e2ab27872a4898531f6408de 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)