summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-08 17:10:48 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-04-08 17:10:48 +0000
commitfeebd9bbc3604877035f5cc9ba5aee960cf942b8 (patch)
tree29ee719c39d806b9422f12f9ecc8956f65bcfeb5 /src
parent6357a5887eac03433f0e1da8d59ac7aeeeeebfbe (diff)
It might be slightly slower, but memset the array as we're using it as a matrix not a simple char*. This will mean that the possibility of past data being left behind in the buffer wont happen
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6762 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_spanningtree/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index 97da561b6..9205077cf 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -184,6 +184,9 @@ void ModuleSpanningTree::ShowMap(TreeServer* Current, userrec* user, int depth,
}
float percent;
char text[128];
+ /* Neat and tidy default values, as we're dealing with a matrix not a simple string */
+ memset(text, 0, 128);
+
if (ServerInstance->clientlist->size() == 0) {
// If there are no users, WHO THE HELL DID THE /MAP?!?!?!
percent = 0;