mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
Fix segfaults when mysql server is not reachable and map is changed/reloaded
This commit is contained in:
parent
896a6fda9b
commit
ce0f1d2ed7
|
@ -76,6 +76,10 @@ bool CSqlScore::Connect()
|
|||
{
|
||||
char aBuf[256];
|
||||
|
||||
m_pDriver = 0;
|
||||
m_pConnection = 0;
|
||||
m_pStatement = 0;
|
||||
|
||||
sql::ConnectOptionsMap connection_properties;
|
||||
connection_properties["hostName"] = sql::SQLString(m_pIp);
|
||||
connection_properties["port"] = m_Port;
|
||||
|
|
Loading…
Reference in a new issue