summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-08 17:54:14 +0000
committerNaram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-08 17:54:14 +0000
commit0b9ae6c1ea681dc4947d0547895b5caae5a0f0ac (patch)
tree0a6cacc63284925f2f334458384524ecb25791f8 /src
parent03e3bb1a5935e88c99b13b21605d871a5aafeade (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules.c3
1 files changed, 2 insertions, 1 deletions
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
*/
}