From: Adam Dickmeiss Date: Mon, 11 May 2009 12:04:55 +0000 (+0200) Subject: Fix initialization two locals X-Git-Tag: v1.0.16~7 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=456a4e8d37159ea87c0451ab62eb3a9b1b485170;p=metaproxy-moved-to-github.git Fix initialization two locals --- diff --git a/src/filter_load_balance.cpp b/src/filter_load_balance.cpp index 1170afb..cc2708f 100644 --- a/src/filter_load_balance.cpp +++ b/src/filter_load_balance.cpp @@ -392,7 +392,7 @@ std::string yf::LoadBalance::Impl::find_session_target(unsigned long session_id) // cost functions unsigned int yf::LoadBalance::Impl::cost(std::string target) { - unsigned int cost; + unsigned int cost = 0; if (target.size() != 0) { @@ -408,7 +408,7 @@ unsigned int yf::LoadBalance::Impl::cost(std::string target) unsigned int yf::LoadBalance::Impl::dead(std::string target) { - unsigned int dead; + unsigned int dead = 0; if (target.size() != 0) {