adjustement to ft_strjoin() after libft update
from libft : ft_strjoin() no longer return if an arg is NULL
This commit is contained in:
@@ -99,10 +99,6 @@ static t_list *ret_parameter_expansion(char *content, int *i)
|
||||
free(tmp);
|
||||
if (expand->content)
|
||||
expand->content = ft_strdup(expand->content);
|
||||
else
|
||||
expand->content = ft_calloc(1, 1);
|
||||
if (!expand->content)
|
||||
return (ft_retp_free(NULL, expand, free));
|
||||
return (expand);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user