From 4d24261a90ead763b3d3fdee60ed9195fe59238e Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 25 Jan 2007 12:57:08 +0000 Subject: [PATCH] Fixed un-initalized variable error_code. Occurred in case where filter receives init response with "failure" and the init response package did not include diagnostic(s). --- src/filter_virt_db.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/filter_virt_db.cpp b/src/filter_virt_db.cpp index b3975ef..a57b8eb 100644 --- a/src/filter_virt_db.cpp +++ b/src/filter_virt_db.cpp @@ -1,4 +1,4 @@ -/* $Id: filter_virt_db.cpp,v 1.48 2007-01-25 11:28:40 adam Exp $ +/* $Id: filter_virt_db.cpp,v 1.49 2007-01-25 12:57:08 adam Exp $ Copyright (c) 2005-2006, Index Data. See the LICENSE file for details @@ -214,6 +214,7 @@ yf::VirtualDB::BackendPtr yf::VirtualDB::Frontend::init_backend( } if (!*res->result) { + error_code = YAZ_BIB1_DATABASE_UNAVAILABLE; mp::util::get_init_diagnostics(res, error_code, addinfo); BackendPtr null; return null; -- 1.7.10.4