From ea052207d2657fbf9955c1b7121b76dea9df38ae Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 8 Sep 2006 19:29:17 +0000 Subject: [PATCH] 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 --- src/users.cpp | 4 ++-- 1 file 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++) { -- 2.39.5