From 3442139fa753ec00fc988113a640fde46783db41 Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Thu, 29 Jul 2010 10:48:34 +0200 Subject: [PATCH] Fix: missing init of descriptor and indirect_reference in externally defined --- ztest/ztest.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 1.7.10.4