Don't add MinidumpAccount if it doesn't exist

Apparently this is crashing now.
This commit is contained in:
Asher Baker 2016-01-20 17:59:41 +00:00
parent 7b75dc3e05
commit 96236d2666

View File

@ -265,7 +265,9 @@ bool UploadAndDeleteCrashDump(const char *path, char *response, int maxlen)
{
IWebForm *form = webternet->CreateForm();
form->AddString("UserID", g_pSM->GetCoreConfigValue("MinidumpAccount"));
const char *minidumpAccount = g_pSM->GetCoreConfigValue("MinidumpAccount");
if (minidumpAccount) form->AddString("UserID", minidumpAccount);
form->AddString("GameDirectory", g_pSM->GetGameFolderName());
form->AddString("ExtensionVersion", SMEXT_CONF_VERSION);