little protection on env0
This commit is contained in:
parent
aeed660535
commit
568213dea4
@ -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,6 +142,7 @@ 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);
|
||||||
|
if (env)
|
||||||
ft_shlvl(env);
|
ft_shlvl(env);
|
||||||
print_prompt(env);
|
print_prompt(env);
|
||||||
return (0);
|
return (0);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user