|
@ -2,6 +2,7 @@ |
|
|
// see LICENSE.txt
|
|
|
// see LICENSE.txt
|
|
|
|
|
|
|
|
|
#include "message_cache.hh" |
|
|
#include "message_cache.hh" |
|
|
|
|
|
#include <pEp/platform.h> |
|
|
#include <cassert> |
|
|
#include <cassert> |
|
|
#include <cstring> |
|
|
#include <cstring> |
|
|
#include <climits> |
|
|
#include <climits> |
|
@ -96,7 +97,7 @@ namespace pEp { |
|
|
if (!src) |
|
|
if (!src) |
|
|
return nullptr; |
|
|
return nullptr; |
|
|
|
|
|
|
|
|
char *dst = ::_strdup(src); |
|
|
char *dst = ::strdup(src); |
|
|
assert(dst); |
|
|
assert(dst); |
|
|
if (!dst) |
|
|
if (!dst) |
|
|
throw std::bad_alloc(); |
|
|
throw std::bad_alloc(); |
|
|