merge de luke

This commit is contained in:
hugogogo
2021-12-18 12:34:26 +01:00
10 changed files with 233 additions and 83 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/04 05:59:26 by lperrey #+# #+# */
/* Updated: 2021/12/17 22:11:26 by hulamy ### ########.fr */
/* Updated: 2021/12/18 12:34:08 by hulamy ### ########.fr */
/* */
/* ************************************************************************** */
@@ -21,8 +21,7 @@ void shell_loop(t_all *c)
line_input = NULL;
while (1)
{
if (line_input)
free(line_input);
free(line_input);
line_input = read_input(c->prompt, c);
if (line_input && *line_input)
{