Parcourir la source

reformatting: cJSON_New_Item

Max Bruckner il y a 8 ans
Parent
commit
55488f66f6
1 fichiers modifiés avec 7 ajouts et 3 suppressions
  1. 7 3
      cJSON.c

+ 7 - 3
cJSON.c

@@ -96,9 +96,13 @@ void cJSON_InitHooks(cJSON_Hooks* hooks)
 /* Internal constructor. */
 static cJSON *cJSON_New_Item(void)
 {
-	cJSON* node = (cJSON*)cJSON_malloc(sizeof(cJSON));
-	if (node) memset(node,0,sizeof(cJSON));
-	return node;
+    cJSON* node = (cJSON*)cJSON_malloc(sizeof(cJSON));
+    if (node)
+    {
+        memset(node, 0, sizeof(cJSON));
+    }
+
+    return node;
 }
 
 /* Delete a cJSON structure. */