diff options
author | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2020-02-02 17:05:54 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p6.le-101.fr> | 2020-02-02 17:05:54 +0100 |
commit | 8d7f65c1c04f7124f1a34062be377fdbe721c46a (patch) | |
tree | 36ef68573148ba58843608a499504138cca3595d /libft/src/ft_printf_treat_flags.c | |
parent | Removed whitespace (diff) | |
download | 42-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 'libft/src/ft_printf_treat_flags.c')
-rw-r--r-- | libft/src/ft_printf_treat_flags.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libft/src/ft_printf_treat_flags.c b/libft/src/ft_printf_treat_flags.c index cb60c19..8beebca 100644 --- a/libft/src/ft_printf_treat_flags.c +++ b/libft/src/ft_printf_treat_flags.c @@ -30,7 +30,7 @@ static int nstr_ptr = nstr; nstr = ft_printf_get_width_nstr(nstr, pflist); ret = ft_printf_fetch_width(arg, nstr, pflist); - ft_memdel(nstr_ptr); + ft_memdel((void**)&nstr_ptr); (ret < 0) ? (pflist->isreverse = 1) : 0; (ret < 0) ? (ret = -ret) : 0; return (ret); |