Fix uninit-memory for sru/solr databaseRecord
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 21 Jun 2011 10:39:12 +0000 (12:39 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 21 Jun 2011 10:39:12 +0000 (12:39 +0200)
src/zoom-sru.c

index 557e812..d6ce28d 100644 (file)
@@ -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 *)