fixed some errors

This commit is contained in:
mdev9
2024-04-22 15:40:06 +02:00
parent 901ff34b7c
commit 9f14d1c1b6
6 changed files with 31 additions and 15 deletions

View File

@ -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);