summaryrefslogtreecommitdiff
path: root/src/modules.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 64a61c1b0..e5a0145c0 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -859,6 +859,7 @@ ConfigReader::ConfigReader()
this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
this->readerror = Config->LoadConf(CONFIG_FILE,this->cache,this->errorlog);
+ tags.clear();
if (!this->readerror)
this->error = CONF_FILE_NOT_FOUND;
}
@@ -879,6 +880,7 @@ ConfigReader::ConfigReader(std::string filename)
this->cache = new std::stringstream(std::stringstream::in | std::stringstream::out);
this->errorlog = new std::stringstream(std::stringstream::in | std::stringstream::out);
this->readerror = Config->LoadConf(filename.c_str(),this->cache,this->errorlog);
+ tags.clear();
if (!this->readerror)
this->error = CONF_FILE_NOT_FOUND;
};