diff options
author | George Hazan <george.hazan@gmail.com> | 2015-02-15 15:39:46 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-02-15 15:39:46 +0000 |
commit | e6fd14cf522fe0309a21aea84bfe2c9b9ee0eedb (patch) | |
tree | 264dd8618f96ca246aeaa7080e0f6d8720b8a7fd /protocols/Tox/src/tox_address.h | |
parent | 4982a2b85b8022d75914970dd04f8ef32b5200f1 (diff) |
crash fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@12127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_address.h')
-rw-r--r-- | protocols/Tox/src/tox_address.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_address.h b/protocols/Tox/src/tox_address.h index a4b152427d..d205eb731e 100644 --- a/protocols/Tox/src/tox_address.h +++ b/protocols/Tox/src/tox_address.h @@ -53,6 +53,11 @@ public: }
ToxBinAddress(const char *hex)
{
+ if (hex == NULL) {
+ binData.resize(32);
+ return;
+ }
+
char *endptr;
const char *pos = hex;
int size = mir_strlen(hex) / 2;
|