From b3b8fde5e83addac3369bae8ce49adf42064e3bb Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Thu, 29 Sep 2011 22:02:54 -0300 Subject: [PATCH] Reducing scope of variable --- src/config/option/hostdownlimitoption.cpp | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/config/option/hostdownlimitoption.cpp b/src/config/option/hostdownlimitoption.cpp index 81c9c3a..000608d 100644 --- a/src/config/option/hostdownlimitoption.cpp +++ b/src/config/option/hostdownlimitoption.cpp @@ -57,10 +57,9 @@ bool HostDownLimitOption::parse( ) { // hosts-down-limit - int host_down_limit = 0; if ( vm.count( get_command_string() ) > 0 ) { - host_down_limit = vm[ get_command_string() ].as (); + int host_down_limit = vm[ get_command_string() ].as (); configuration->set_hosts_down_limit( host_down_limit ); GlobalLogger.info() << get_command_string() << "=" -- 1.7.1