Merge pull request #40 from jfether/patch-1

Remove redundant test from cJSON_AddItemToArray
This commit is contained in:
Max Bruckner 2016-10-28 14:06:39 +07:00 committed by GitHub
commit 0c23e8dde0

View File

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