norm ok + compile

This commit is contained in:
2024-03-27 17:34:43 +01:00
parent ffbbd564f9
commit eae8f96645
5 changed files with 15 additions and 12 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/02 21:59:20 by tomoron #+# #+# */
/* Updated: 2024/03/27 17:02:16 by tomoron ### ########.fr */
/* Updated: 2024/03/27 17:33:15 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -75,7 +75,9 @@ int init_minishell(t_msh **msh, int argc, char **argv, char **envp)
{
struct termios t_p;
ft_exit(*msh, 1);
*msh = ft_calloc(1, sizeof(t_msh));
if (!*msh)
ft_exit(*msh, 1);
(void)argc;
(void)argv;
(*msh)->env = get_env(envp);