summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-07 19:50:00 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-07 19:50:00 +0000
commitefee3a4d4ec21a32bb46185e1b997947c9d5daf2 (patch)
treeff7cc6e4dda638b9258f79c478a01db0c5f831a6
parent254733972704fa54092902a32f2b3eef30d74014 (diff)
Initialising the member we added might be an idea.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10456 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/socketengine.h2
-rw-r--r--src/socketengine.cpp7
2 files changed, 7 insertions, 2 deletions
diff --git a/include/socketengine.h b/include/socketengine.h
index 45624ac8e..c04ae6c70 100644
--- a/include/socketengine.h
+++ b/include/socketengine.h
@@ -106,7 +106,7 @@ class CoreExport EventHandler : public Extensible
/** Constructor
*/
- EventHandler() {}
+ EventHandler();
/** Destructor
*/
diff --git a/src/socketengine.cpp b/src/socketengine.cpp
index a1e3a8ef0..0a0717964 100644
--- a/src/socketengine.cpp
+++ b/src/socketengine.cpp
@@ -41,6 +41,11 @@
#include "inspircd.h"
#include "socketengine.h"
+EventHandler::EventHandler()
+{
+ this->IOHook = NULL;
+}
+
bool EventHandler::AddIOHook(Module *IOHooker)
{
if (this->IOHook)
@@ -55,7 +60,7 @@ bool EventHandler::DelIOHook()
if (!this->IOHook)
return false;
- this->IOHook = false;
+ this->IOHook = NULL;
return true;
}