not quite there yet but nearly ^^
WIP for the algorithm not to pass on previously used node
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2019/03/27 14:56:55 by tmaze #+# #+# */
|
||||
/* Updated: 2019/03/31 17:53:47 by tmaze ### ########.fr */
|
||||
/* Updated: 2019/04/01 17:37:51 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -30,7 +30,7 @@ void lst_inddel(t_ind **lst)
|
||||
{
|
||||
t_ind *tmp;
|
||||
|
||||
while (*lst != NULL)
|
||||
while (lst && *lst != NULL)
|
||||
{
|
||||
tmp = *lst;
|
||||
*lst = (*lst)->next;
|
||||
|
Reference in New Issue
Block a user