diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-08 19:29:17 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-09-08 19:29:17 +0000 |
commit | ea052207d2657fbf9955c1b7121b76dea9df38ae (patch) | |
tree | 25494d1dff48b37ba657eb634484e2f235be3914 | |
parent | 5d421c433f6b9bf6543e368aeaa4b98fa426c701 (diff) |
Stop valgrind whining about uninitialized array, all we do is pass it as a buffer, but it whines anyway so we do = {0} on it :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5174 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/users.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp index f8b8efeb0..6313c7340 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1000,8 +1000,8 @@ void userrec::AddClient(InspIRCd* Instance, int socket, int port, bool iscached, long userrec::GlobalCloneCount() { - char u1[1024]; - char u2[1024]; + char u1[1024] = {0}; + char u2[1024] = {0}; long x = 0; for (user_hash::const_iterator a = ServerInstance->clientlist.begin(); a != ServerInstance->clientlist.end(); a++) { |