From 35c80d96871b33904c9206919d2b31ce753d699b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 11 May 2005 12:07:48 +0000 Subject: [PATCH] Initialize members scanClause,errcode,errstring for Z39.50 scan handling --- src/seshigh.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/seshigh.c b/src/seshigh.c index 4a02280..a445b18 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: seshigh.c,v 1.54 2005-04-29 19:06:13 adam Exp $ + * $Id: seshigh.c,v 1.55 2005-05-11 12:07:48 adam Exp $ */ /** * \file seshigh.c @@ -1764,7 +1764,7 @@ static Z_APDU *process_initRequest(association *assoc, request *reqb) assoc->init->implementation_name, odr_prepend(assoc->encode, "GFS", resp->implementationName)); - version = odr_strdup(assoc->encode, "$Revision: 1.54 $"); + version = odr_strdup(assoc->encode, "$Revision: 1.55 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; resp->implementationVersion = odr_prepend(assoc->encode, @@ -2340,6 +2340,9 @@ static Z_APDU *process_scanRequest(association *assoc, request *reqb, int *fd) for (i = 0; i < req->num_databaseNames; i++) yaz_log (log_requestdetail, "Database '%s'", req->databaseNames[i]); } + bsrr->scanClause = 0; + bsrr->errcode = 0; + bsrr->errstring = 0; bsrr->num_bases = req->num_databaseNames; bsrr->basenames = req->databaseNames; bsrr->num_entries = *req->numberOfTermsRequested; -- 1.7.10.4