Permalink
Browse files

cJSON_CreateRaw: Format fixes

  • Loading branch information...
1 parent 1df987a commit e3e0b5150b58ae7341cfbd38d999d9bee79bdb63 @FSMaxB FSMaxB committed Jan 5, 2017
Showing with 13 additions and 13 deletions.
  1. +13 −13 cJSON.c
View
@@ -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)

0 comments on commit e3e0b51

Please sign in to comment.