From 49cab9854f19abbef3a618a41514872039c316a3 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Sun, 31 Oct 2004 19:23:22 +0000 Subject: [PATCH] Bug fix: explainRequest decoder did not initialize some members when explain record was missing. --- src/srw.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/srw.c b/src/srw.c index 067e5f3..07ecccf 100644 --- a/src/srw.c +++ b/src/srw.c @@ -2,7 +2,7 @@ * Copyright (c) 2002-2004, Index Data. * See the file LICENSE for details. * - * $Id: srw.c,v 1.27 2004-10-15 00:19:00 adam Exp $ + * $Id: srw.c,v 1.28 2004-10-31 19:23:22 adam Exp $ */ /** * \file srw.c @@ -578,6 +578,10 @@ int yaz_srw_codec(ODR o, void * vptr, Z_SRW_PDU **handler_data, odr_malloc(o, sizeof(*res)); res->diagnostics = 0; res->num_diagnostics = 0; + res->record.recordSchema = 0; + res->record.recordData_buf = 0; + res->record.recordData_len = 0; + res->record.recordPosition = 0; for (; ptr; ptr = ptr->next) { -- 1.7.10.4