From: Guilherme Maciel Ferreira Date: Tue, 6 Sep 2011 03:25:39 +0000 (-0300) Subject: Parsing only if could process the file, now it is simetric with the command line... X-Git-Tag: v1.3~11^2~34^2~34 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=cac60f22e322588aebb51c81f1be05781e064290;p=pingcheck Parsing only if could process the file, now it is simetric with the command line code --- diff --git a/src/config/configurationreader.cpp b/src/config/configurationreader.cpp index e709c97..157d455 100644 --- a/src/config/configurationreader.cpp +++ b/src/config/configurationreader.cpp @@ -85,7 +85,10 @@ bool ConfigurationReader::parse( string file_name = Config.get_config_file_name(); ConfigurationFile file( file_name ); bool configuration_file_processed = file.process( &vm ); - file.parse( vm, &Config ); + if ( configuration_file_processed ) + { + file.parse( vm, &Config ); + } bool input_processed = command_line_processed && configuration_file_processed;