From: Jay Freeman (saurik) Date: Sun, 23 Jun 2013 08:45:22 +0000 (-0700) Subject: apr_pstrdup used to return NULL when passed NULL. X-Git-Tag: v0.9.500%b1~45 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/5963ec5bc27cc5ce1ff3e6a60d0776de87c4f250 apr_pstrdup used to return NULL when passed NULL. --- 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)); }