mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
Fix potential crash on uninitialised var
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11267 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
01fac25f16
commit
40747ee2ad
@ -773,6 +773,7 @@ void DispatcherThread::Run()
|
||||
LoadDatabases(Parent->Conf, Parent->PublicServerInstance, Parent);
|
||||
}
|
||||
|
||||
conn = NULL;
|
||||
Parent->ConnMutex.Lock();
|
||||
for (ConnMap::iterator i = Connections.begin(); i != Connections.end(); i++)
|
||||
{
|
||||
@ -806,9 +807,10 @@ void DispatcherThread::Run()
|
||||
|
||||
void DispatcherThread::OnNotify()
|
||||
{
|
||||
SQLConnection* conn;
|
||||
while (1)
|
||||
{
|
||||
SQLConnection* conn = NULL;
|
||||
conn = NULL;
|
||||
Parent->ConnMutex.Lock();
|
||||
for (ConnMap::iterator iter = Connections.begin(); iter != Connections.end(); iter++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user