summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-04 16:22:23 +0000
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-04 16:22:23 +0000
commitf7489c88c6ac7d545ca19ab040d89c80038f1177 (patch)
tree0f2dc7bbb7cfe648e3815260a6efdbf4001c2eb4
parent2b8ce39c6ea5e7a22fe39b21756f82051465f143 (diff)
Init the sequence indicator to avoid undefined behaviour. Thx owine.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7424 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_stripcolor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_stripcolor.cpp b/src/modules/m_stripcolor.cpp
index e18795b4d..aad253bc7 100644
--- a/src/modules/m_stripcolor.cpp
+++ b/src/modules/m_stripcolor.cpp
@@ -115,7 +115,7 @@ class ModuleStripColor : public Module
virtual void ReplaceLine(std::string &sentence)
{
/* refactor this completely due to SQUIT bug since the old code would strip last char and replace with \0 --peavey */
- int seq;
+ int seq = 0;
std::string::iterator i,safei;
for (i = sentence.begin(); i != sentence.end(); ++i)
{