Selaa lähdekoodia

cJSON_CreateRaw: Format fixes

Max Bruckner 8 vuotta sitten
vanhempi
commit
e3e0b5150b
1 muutettua tiedostoa jossa 13 lisäystä ja 13 poistoa
  1. 13 13
      cJSON.c

+ 13 - 13
cJSON.c

@@ -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)