summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-06 03:52:34 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-09-06 03:52:34 +0000
commit3426b12234a0968da611bee47cbbc43ee4e3b5ed (patch)
treed3e8a9f487f5c8a6915707e0ffe67e44bee8c6f9 /src/modules/extra
parent09262ea7e490f75ff9770edca5099ed7e276e270 (diff)
RegexFactoryRequest sets result to null on construction, so if you direct this Request at a module which doesnt implement it, you predictibly get NULL as a result from Create() rather than a random value
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10402 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_regex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extra/m_regex.h b/src/modules/extra/m_regex.h
index 7670582c3..50e7a4845 100644
--- a/src/modules/extra/m_regex.h
+++ b/src/modules/extra/m_regex.h
@@ -49,7 +49,7 @@ private:
public:
Regex* result;
- RegexFactoryRequest(Module* Me, Module* Target, const std::string& rx) : Request(Me, Target, "REGEX"), regex(rx)
+ RegexFactoryRequest(Module* Me, Module* Target, const std::string& rx) : Request(Me, Target, "REGEX"), regex(rx), result(NULL)
{
}