From cac60f22e322588aebb51c81f1be05781e064290 Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Tue, 6 Sep 2011 00:25:39 -0300 Subject: [PATCH] Parsing only if could process the file, now it is simetric with the command line code --- src/config/configurationreader.cpp | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) 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; -- 1.7.1