diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-04 16:22:23 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-04 16:22:23 +0000 |
commit | f7489c88c6ac7d545ca19ab040d89c80038f1177 (patch) | |
tree | 0f2dc7bbb7cfe648e3815260a6efdbf4001c2eb4 /src/modules | |
parent | 2b8ce39c6ea5e7a22fe39b21756f82051465f143 (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
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_stripcolor.cpp | 2 |
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) { |