From: Dennis Schafroth Date: Thu, 29 Jul 2010 08:48:34 +0000 (+0200) Subject: Fix: missing init of descriptor and indirect_reference in externally defined X-Git-Tag: v4.0.12~18 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=3442139fa753ec00fc988113a640fde46783db41;p=yaz-moved-to-github.git Fix: missing init of descriptor and indirect_reference in externally defined --- diff --git a/ztest/ztest.c b/ztest/ztest.c index c9d4af0..7ddb3c6 100644 --- a/ztest/ztest.c +++ b/ztest/ztest.c @@ -278,6 +278,8 @@ Z_OtherInformation *build_facet_response(ODR odr, Z_FacetList *facet_list) { oiu->which = Z_OtherInfo_externallyDefinedInfo; oiu->information.externallyDefinedInfo = odr_malloc(odr, sizeof(*oiu->information.externallyDefinedInfo)); oiu->information.externallyDefinedInfo->direct_reference = odr_oiddup(odr, yaz_oid_userinfo_facet_1); + oiu->information.externallyDefinedInfo->descriptor = 0; + oiu->information.externallyDefinedInfo->indirect_reference = 0; oiu->information.externallyDefinedInfo->which = Z_External_userFacets; oiu->information.externallyDefinedInfo->u.facetList = new_list; oi->list[0] = oiu;