@@ -70,8 +70,12 @@ static char* cJSON_strdup(const char* str)
char* copy;
len = strlen(str) + 1;
if (!(copy = (char*)cJSON_malloc(len))) return 0;
if (!(copy = (char*)cJSON_malloc(len)))
{
return 0;
}
memcpy(copy, str, len);
return copy;
The note is not visible to the blocked user.