Fix crash with broken ddnet-info.json

This commit is contained in:
def 2017-09-20 22:25:55 +02:00
parent 03fa475b5e
commit 553c97b52d

View file

@ -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;