Commit 4b829f05 authored by abenoit's avatar abenoit
Browse files

eexit arg error exit fix

parent 7a065f92
......@@ -20,6 +20,10 @@ int ft_exit(char **args, t_xe *xe)
if (args[2] != NULL)
{
xe->stat_loc = 1;
if (!(xe->flags & RUN))
xe->flags += RUN;
if (xe->flags & EXIT_FLAG)
xe->flags -= EXIT_FLAG;
return (EXIT_ARG_ERR);
}
xe->stat_loc = (unsigned int)ft_atoi(args[1]) % 256;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment