From b878aa62024fdff08a9a76d80ddbeb1ee19d9179 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 19 Aug 2020 17:57:05 +0200 Subject: ft_vecdestroy return NULL to norm easily --- src/str/ft_strjoinf.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/str') diff --git a/src/str/ft_strjoinf.c b/src/str/ft_strjoinf.c index e5edced..5504ceb 100644 --- a/src/str/ft_strjoinf.c +++ b/src/str/ft_strjoinf.c @@ -6,12 +6,10 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 03:41:07 by cacharle #+# #+# */ -/* Updated: 2020/06/12 11:45:59 by charles ### ########.fr */ +/* Updated: 2020/08/19 13:31:00 by charles ### ########.fr */ /* */ /* ************************************************************************** */ -#include -#include "libft.h" #include "libft_str.h" char *ft_strjoinf(char const *s1, char const *s2, t_ftstrjoinf_tag tag) @@ -20,8 +18,7 @@ char *ft_strjoinf(char const *s1, char const *s2, t_ftstrjoinf_tag tag) if (s1 == NULL || s2 == NULL) return (NULL); - if ((joined = ft_strjoin(s1, s2)) == NULL) - return (NULL); + joined = ft_strjoin(s1, s2); if (tag == FT_STRJOINF_FST) free((void*)s1); else if (tag == FT_STRJOINF_SND) -- cgit