Closed rainnus closed 6 years ago
After called list_iter_init initializing the iterator, iter->last is signed NULL. Then if invoke list_iter_add, line link_after(iter->last, new_node); will throw exception.
list_iter_init
iter->last
NULL
list_iter_add
link_after(iter->last, new_node);
After called
list_iter_init
initializing the iterator,iter->last
is signedNULL
. Then if invokelist_iter_add
,line
link_after(iter->last, new_node);
will throw exception.