little protection on env0

This commit is contained in:
kinou-p 2022-04-19 07:25:42 +02:00
parent aeed660535
commit 568213dea4

View File

@ -6,7 +6,7 @@
/* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */ /* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/06 13:27:11 by apommier #+# #+# */ /* Created: 2022/03/06 13:27:11 by apommier #+# #+# */
/* Updated: 2022/04/19 06:46:37 by apommier ### ########.fr */ /* Updated: 2022/04/19 07:24:47 by apommier ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -142,7 +142,8 @@ int main(int ac, char **av, char **path)
printf("---MINISHELL START---\n"); printf("---MINISHELL START---\n");
signal(SIGINT, crtl_c); signal(SIGINT, crtl_c);
//signal(SIGQUIT, sig_quit); //signal(SIGQUIT, sig_quit);
ft_shlvl(env); if (env)
ft_shlvl(env);
print_prompt(env); print_prompt(env);
return (0); return (0);
} }