From f7489c88c6ac7d545ca19ab040d89c80038f1177 Mon Sep 17 00:00:00 2001 From: peavey Date: Wed, 4 Jul 2007 16:22:23 +0000 Subject: 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 --- src/modules/m_stripcolor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3