From efee3a4d4ec21a32bb46185e1b997947c9d5daf2 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 7 Sep 2008 19:50:00 +0000 Subject: 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 --- src/socketengine.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3