aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_tex.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-02-02 17:05:54 +0100
committerRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-02-02 17:05:54 +0100
commit8d7f65c1c04f7124f1a34062be377fdbe721c46a (patch)
tree36ef68573148ba58843608a499504138cca3595d /src/ft_get_tex.c
parentRemoved whitespace (diff)
download42-cub3d-8d7f65c1c04f7124f1a34062be377fdbe721c46a.tar.gz
42-cub3d-8d7f65c1c04f7124f1a34062be377fdbe721c46a.tar.bz2
42-cub3d-8d7f65c1c04f7124f1a34062be377fdbe721c46a.tar.xz
42-cub3d-8d7f65c1c04f7124f1a34062be377fdbe721c46a.tar.zst
42-cub3d-8d7f65c1c04f7124f1a34062be377fdbe721c46a.zip
Correct ft_memdel
Diffstat (limited to 'src/ft_get_tex.c')
-rw-r--r--src/ft_get_tex.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_get_tex.c b/src/ft_get_tex.c
index 3c0f305..5b8e24e 100644
--- a/src/ft_get_tex.c
+++ b/src/ft_get_tex.c
@@ -7,7 +7,7 @@ ft_get_tex_no(char **words, t_cub *clist)
{
if (!(*words) || !(*(words + 1)) || (*(words + 2)))
return (-1);
- ft_memdel(clist->no_tex_path);
+ ft_memdel((void**)&clist->no_tex_path);
if (!(clist->no_tex_path = ft_strdup(*(words + 1))))
return (-1);
return (0);
@@ -18,7 +18,7 @@ ft_get_tex_so(char **words, t_cub *clist)
{
if (!(*words) || !(*(words + 1)) || (*(words + 2)))
return (-1);
- ft_memdel(clist->so_tex_path);
+ ft_memdel((void**)&clist->so_tex_path);
if (!(clist->so_tex_path = ft_strdup(*(words + 1))))
return (-1);
return (0);
@@ -29,7 +29,7 @@ ft_get_tex_ea(char **words, t_cub *clist)
{
if (!(*words) || !(*(words + 1)) || (*(words + 2)))
return (-1);
- ft_memdel(clist->ea_tex_path);
+ ft_memdel((void**)&clist->ea_tex_path);
if (!(clist->ea_tex_path = ft_strdup(*(words + 1))))
return (-1);
return (0);
@@ -40,7 +40,7 @@ ft_get_tex_we(char **words, t_cub *clist)
{
if (!(*words) || !(*(words + 1)) || (*(words + 2)))
return (-1);
- ft_memdel(clist->we_tex_path);
+ ft_memdel((void**)&clist->we_tex_path);
if (!(clist->we_tex_path = ft_strdup(*(words + 1))))
return (-1);
return (0);