Explorar o código

Init list's tail

Serj Kalichev %!s(int64=10) %!d(string=hai) anos
pai
achega
9332700cf1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;
 }