From: Adam Dickmeiss Date: Thu, 25 Jan 2007 12:57:08 +0000 (+0000) Subject: Fixed un-initalized variable error_code. Occurred in case where filter X-Git-Tag: METAPROXY.1.0.8~9 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=4d24261a90ead763b3d3fdee60ed9195fe59238e;p=metaproxy-moved-to-github.git 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). --- 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;