]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Init the sequence indicator to avoid undefined behaviour. Thx owine.
authorpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 4 Jul 2007 16:22:23 +0000 (16:22 +0000)
committerpeavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7>
Wed, 4 Jul 2007 16:22:23 +0000 (16:22 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7424 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_stripcolor.cpp

index e18795b4d9dd5858fc30ad070dbdc6df41890c5c..aad253bc740bfbc1445ed6e00b3ffa80556ece6d 100644 (file)
@@ -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)
                {