diff --git a/cJSON.c b/cJSON.c index 36d9233..62fd4bc 100644 --- a/cJSON.c +++ b/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; }