]> granicus.if.org Git - icinga2/commitdiff
Make sure the 'autocomplete' variable is initialized
authorGunnar Beutner <gunnar.beutner@netways.de>
Wed, 8 Oct 2014 13:46:29 +0000 (15:46 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Wed, 8 Oct 2014 13:46:29 +0000 (15:46 +0200)
refs #7246

lib/base/clicommand.cpp

index 696eab613153d2904256a82e1c3e3d6a78a05db1..01e7186354a059d0a423f8eba16fca5379fcaa0a 100644 (file)
@@ -68,6 +68,8 @@ bool CLICommand::ParseCommand(int argc, char **argv, po::options_description& de
 {
        boost::mutex::scoped_lock lock(l_RegistryMutex);
 
+       autocomplete = false;
+       
        typedef std::map<std::vector<String>, CLICommand::Ptr>::value_type CLIKeyValue;
 
        std::vector<String> best_match;