瀏覽代碼

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;
 }