From de184f9d627d26efebd2da1756b8d1d20656b6ad Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 2 Nov 2008 04:22:11 +0000 Subject: 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 --- src/modules.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3