]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Shut up, valgrind
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 13 Oct 2007 22:09:46 +0000 (22:09 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 13 Oct 2007 22:09:46 +0000 (22:09 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8163 e03df62e-2008-0410-955e-edbf42e46eb7

include/modules.h
src/modules.cpp

index c7c61c221e05245516c0e1c140b8fa8146bbedb9..0aaa06c34183f0bc0f312fa5e0962400b1adf505 100644 (file)
@@ -1376,6 +1376,7 @@ class CoreExport Module : public Extensible
 };
 
 
+#define CONF_NO_ERROR          0x000000
 #define CONF_NOT_A_NUMBER      0x000010
 #define CONF_INT_NEGATIVE      0x000080
 #define CONF_VALUE_NOT_FOUND   0x000100
index 3bd4886a477c0a570a4c06b1052079eb52d2e1d9..b236977cc6bfef5825d197a5f7aefcc0b2f80d8f 100644 (file)
@@ -956,7 +956,7 @@ ConfigReader::ConfigReader(InspIRCd* Instance) : ServerInstance(Instance)
         * default one we can just use the global config data - pre-parsed!
         */
        this->errorlog = new std::ostringstream(std::stringstream::in | std::stringstream::out);
-       
+       this->error = CONF_NO_ERROR;
        this->data = &ServerInstance->Config->config_data;
        this->privatehash = false;
 }
@@ -975,6 +975,7 @@ ConfigReader::ConfigReader(InspIRCd* Instance, const std::string &filename) : Se
 {
        ServerInstance->Config->ClearStack();
 
+       this->error = CONF_NO_ERROR;
        this->data = new ConfigDataHash;
        this->privatehash = true;
        this->errorlog = new std::ostringstream(std::stringstream::in | std::stringstream::out);