diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-09-18 16:03:57 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-09-18 16:03:57 +0000 |
commit | 88af57f7a8684af4a33eb71d0e4736ae5d2e7a7d (patch) | |
tree | e3529fa9705b12deaf67e223f794a185b09a40d1 /protocols | |
parent | 3dcdb31307fabd9ef5a4115adc4066ae22b60222 (diff) |
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
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Tox/src/tox_core.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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)
|