summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-14 20:01:01 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-14 20:01:01 +0000
commita3de29f341a1a7e057d248686a9a9170ac67f466 (patch)
tree016941403daec0dc38429e4238d05ddcb71e9e4a
parent9d5102ed8b0985de418e7acc2613c3ded7fbfe96 (diff)
Another couple of 'forgot to memset's
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5742 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_chanprotect.cpp4
-rw-r--r--src/socketengine_epoll.cpp1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp
index d46d28faa..23924bd0a 100644
--- a/src/modules/m_chanprotect.cpp
+++ b/src/modules/m_chanprotect.cpp
@@ -289,10 +289,10 @@ class ModuleChanProtect : public Module
public:
- ModuleChanProtect(InspIRCd* Me) : Module::Module(Me)
+ ModuleChanProtect(InspIRCd* Me)
+ : Module::Module(Me), FirstInGetsFounder(false), QAPrefixes(false), DeprivSelf(false), booting(true)
{
/* Load config stuff */
- booting = true;
OnRehash("");
booting = false;
diff --git a/src/socketengine_epoll.cpp b/src/socketengine_epoll.cpp
index 1f4f02548..06124a48c 100644
--- a/src/socketengine_epoll.cpp
+++ b/src/socketengine_epoll.cpp
@@ -155,6 +155,7 @@ int EPollEngine::DispatchEvents()
if (events[j].events & EPOLLOUT)
{
struct epoll_event ev;
+ memset(&ev,0,sizeof(struct epoll_event));
ev.events = EPOLLIN;
ev.data.fd = events[j].data.fd;
int i = epoll_ctl(EngineHandle, EPOLL_CTL_MOD, events[j].data.fd, &ev);