소스 검색

Merge pull request #40 from jfether/patch-1

Remove redundant test from cJSON_AddItemToArray
Max Bruckner 8 년 전
부모
커밋
0c23e8dde0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
         }