From: Adam Dickmeiss Date: Tue, 21 Jun 2011 10:39:12 +0000 (+0200) Subject: Fix uninit-memory for sru/solr databaseRecord X-Git-Tag: v4.2.4~1 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=0f9a136e988a7f9813a9a6c8f6e014c4e2653e30;p=yaz-moved-to-github.git Fix uninit-memory for sru/solr databaseRecord --- diff --git a/src/zoom-sru.c b/src/zoom-sru.c index 557e812..d6ce28d 100644 --- a/src/zoom-sru.c +++ b/src/zoom-sru.c @@ -328,6 +328,7 @@ static zoom_ret handle_srw_response(ZOOM_connection c, npr->u.databaseRecord->descriptor = 0; npr->u.databaseRecord->direct_reference = odr_oiddup(c->odr_in, yaz_oid_recsyn_xml); + npr->u.databaseRecord->indirect_reference = 0; npr->u.databaseRecord->which = Z_External_octet; npr->u.databaseRecord->u.octet_aligned = (Odr_oct *)