fixed some errors
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/02/21 21:47:15 by marde-vr #+# #+# */
|
||||
/* Updated: 2024/04/18 20:48:58 by marde-vr ### ########.fr */
|
||||
/* Updated: 2024/04/22 14:33:46 by marde-vr ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -84,7 +84,11 @@ void get_cmd_path(t_msh *msh)
|
||||
if (ft_strchr(msh->tokens->value, '/'))
|
||||
{
|
||||
if (!file_access(msh, &found))
|
||||
{
|
||||
free(msh->tokens->value);
|
||||
msh->tokens->value = 0;
|
||||
return ;
|
||||
}
|
||||
}
|
||||
else
|
||||
get_path(msh, &found);
|
||||
|
Reference in New Issue
Block a user