From 88af57f7a8684af4a33eb71d0e4736ae5d2e7a7d Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Fri, 18 Sep 2015 16:03:57 +0000 Subject: Tox: - attempt to fix one more crash (fixes #1039) git-svn-id: http://svn.miranda-ng.org/main/trunk@15382 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_core.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocols/Tox/src/tox_core.cpp b/protocols/Tox/src/tox_core.cpp index bcd8ade298..5cb7e90cb6 100644 --- a/protocols/Tox/src/tox_core.cpp +++ b/protocols/Tox/src/tox_core.cpp @@ -51,6 +51,9 @@ bool CToxProto::InitToxCore() if (LoadToxProfile(options)) { + if (toxThread == NULL) + return false; + TOX_ERR_NEW initError; toxThread->tox = tox_new(options, &initError); if (initError != TOX_ERR_NEW_OK) -- cgit v1.2.3