From 456a4e8d37159ea87c0451ab62eb3a9b1b485170 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 11 May 2009 14:04:55 +0200 Subject: [PATCH] Fix initialization two locals --- src/filter_load_balance.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 1.7.10.4