diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-11-02 04:22:11 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-11-02 04:22:11 +0000 |
commit | de184f9d627d26efebd2da1756b8d1d20656b6ad (patch) | |
tree | 77482e56a2edecbd6a7633fa5f39a7dc7b1977f6 | |
parent | 0f33be2964f8a47fa89c19c7c69375b46ffd6563 (diff) |
Forward-port: Fix an uninitialised variable in ConfigReader::GetError()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10790 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 4eca9492e..694601df9 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -813,6 +813,7 @@ ConfigReader::ConfigReader(InspIRCd* Instance) : ServerInstance(Instance) this->error = CONF_NO_ERROR; this->data = &ServerInstance->Config->config_data; this->privatehash = false; + this->error = 0; } @@ -837,6 +838,7 @@ ConfigReader::ConfigReader(InspIRCd* Instance, const std::string &filename) : Se this->readerror = ServerInstance->Config->DoInclude(*this->data, filename, *this->errorlog); if (!this->readerror) this->error = CONF_FILE_NOT_FOUND; + this->error = 0; } |