Browse Source

handle null pointers: cJSON_Minify

pull/183/head
Max Bruckner 7 years ago
parent
commit
24ea388dcf
  1. 6
      cJSON.c

6
cJSON.c

@ -2390,6 +2390,12 @@ fail:
CJSON_PUBLIC(void) cJSON_Minify(char *json)
{
unsigned char *into = (unsigned char*)json;
if (json == NULL)
{
return;
}
while (*json)
{
if (*json == ' ')

Loading…
Cancel
Save