aboutsummaryrefslogtreecommitdiffstats
path: root/src/socket.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-08-13 11:19:08 +0000
committerGravatar brain2006-08-13 11:19:08 +0000
commit98a19e8535dbc46b43d5909a0db880956a3d6afb (patch)
tree6acbe2cd79a9ae3af3d95af9e73a5c276e4af87c /src/socket.cpp
parentThe ref table has never ever been cleared properly... (diff)
Make sure fd_ref_table and socket_ref arrays are initialized with all NULLS on startup
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4916 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index c12450e29..52fe7eae7 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -43,7 +43,7 @@ extern InspIRCd* ServerInstance;
extern ServerConfig* Config;
extern time_t TIME;
-InspSocket* socket_ref[MAX_DESCRIPTORS];
+InspSocket* socket_ref[MAX_DESCRIPTORS] = { NULL };
InspSocket::InspSocket()
{