From 0b9ae6c1ea681dc4947d0547895b5caae5a0f0ac Mon Sep 17 00:00:00 2001 From: "Naram Qashat cyberbotx@cyberbotx.com" Date: Sat, 8 Nov 2008 17:54:14 +0000 Subject: [PATCH] Fix segfault when a module throws an exception. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1601 5417fbe8-f217-4b02-8779-1006273d7864 --- src/modules.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules.c b/src/modules.c index 9e232400a..a6cad9be7 100644 --- a/src/modules.c +++ b/src/modules.c @@ -344,6 +344,7 @@ void modules_unload_all(bool fini, bool unload_proto) Module::Module(const std::string &mname, const std::string &creator) { this->name = mname; /* Our name */ + this->filename = NULL; this->nickHelp = NULL; this->chanHelp = NULL; this->memoHelp = NULL; @@ -381,7 +382,7 @@ Module::~Module() } /* - * No need to free our cmd/msg list, as they will always be empty by the module is destroyed + * No need to free our cmd/msg list, as they will always be empty by the module is destroyed * XXX: not sure I like this assumption -- w00t */ }