소스 검색

Init list's tail

Serj Kalichev 10 년 전
부모
커밋
9332700cf1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      lub/list/list.c

+ 1 - 0
lub/list/list.c

@@ -9,6 +9,7 @@ static inline void lub_list_init(lub_list_t * this,
 	lub_list_compare_fn compareFn)
 {
 	this->head = NULL;
+	this->tail = NULL;
 	this->compareFn = compareFn;
 }