mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Fix crash with broken ddnet-info.json
This commit is contained in:
parent
03fa475b5e
commit
553c97b52d
|
@ -1072,7 +1072,7 @@ void CServerBrowser::LoadDDNetInfoJson()
|
|||
|
||||
mem_free(pBuf);
|
||||
|
||||
if(m_pDDNetInfo->type != json_object)
|
||||
if(m_pDDNetInfo && m_pDDNetInfo->type != json_object)
|
||||
{
|
||||
json_value_free(m_pDDNetInfo);
|
||||
m_pDDNetInfo = 0;
|
||||
|
|
Loading…
Reference in a new issue