aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_init_lists.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ft_init_lists.c b/src/ft_init_lists.c
index 8cea58b..a30e166 100644
--- a/src/ft_init_lists.c
+++ b/src/ft_init_lists.c
@@ -89,21 +89,21 @@ static t_cub
}
int8_t
- ft_init_cub3d(t_cub **cl)
+ ft_init_cub3d(t_cub **clist)
{
- t_cub *clist;
+ t_cub *cl;
- if (!(clist = ft_init_cub()))
+ if (!(cl = ft_init_cub()))
{
- ft_memdel((void**)&clist);
+ ft_memdel((void**)&cl);
return (-1);
}
- if (!(clist->wlist = ft_init_win()))
+ if (!(cl->wlist = ft_init_win()))
{
- ft_memdel((void**)&clist->wlist);
- ft_memdel((void**)&clist);
+ ft_memdel((void**)&cl->wlist);
+ ft_memdel((void**)&cl);
return (-1);
}
- *cl = clist;
+ *clist = cl;
return (0);
}