From: Guilherme Maciel Ferreira Date: Fri, 30 Sep 2011 01:02:54 +0000 (-0300) Subject: Reducing scope of variable X-Git-Tag: v1.3~11^2~34^2~11 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=b3b8fde5e83addac3369bae8ce49adf42064e3bb;p=pingcheck Reducing scope of variable --- 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() << "="