Explorar o código

Merge pull request #40 from jfether/patch-1

Remove redundant test from cJSON_AddItemToArray
Max Bruckner %!s(int64=8) %!d(string=hai) anos
pai
achega
0c23e8dde0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cJSON.c

+ 1 - 1
cJSON.c

@@ -1658,7 +1658,7 @@ void   cJSON_AddItemToArray(cJSON *array, cJSON *item)
     else
     {
         /* append to the end */
-        while (c && c->next)
+        while (c->next)
         {
             c = c->next;
         }