Skip to content

Commit

Permalink
cJSON_CreateRaw: Format fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
FSMaxB committed Jan 5, 2017
1 parent 1df987a commit e3e0b51
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions cJSON.c
Expand Up @@ -2019,19 +2019,19 @@ cJSON *cJSON_CreateString(const char *string)

extern cJSON *cJSON_CreateRaw(const char *raw)
{
cJSON *item = cJSON_New_Item();
if(item)
{
item->type = cJSON_Raw;
item->valuestring = cJSON_strdup(raw);
if(!item->valuestring)
{
cJSON_Delete(item);
return 0;
}
}
return item;
cJSON *item = cJSON_New_Item();
if(item)
{
item->type = cJSON_Raw;
item->valuestring = cJSON_strdup(raw);
if(!item->valuestring)
{
cJSON_Delete(item);
return NULL;
}
}

return item;
}

cJSON *cJSON_CreateArray(void)
Expand Down

0 comments on commit e3e0b51

Please sign in to comment.