X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/0cbeddf886b3e6d732c96a8f6a578a755e7ddf66..4ad7388f6204180f983960593b7f885980517ca9:/Pooling.hpp?ds=sidebyside diff --git a/Pooling.hpp b/Pooling.hpp index bd37c5c..24c7cc2 100644 --- a/Pooling.hpp +++ b/Pooling.hpp @@ -99,6 +99,8 @@ class CYPool { } char *strdup(const char *data) { + if (data == NULL) + return NULL; return reinterpret_cast(memdup(data, strlen(data) + 1)); }