diff --git a/src/prompt/history_load.c b/src/prompt/history_load.c index 2094bec..d8c0574 100644 --- a/src/prompt/history_load.c +++ b/src/prompt/history_load.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ */ /* +#+ */ /* Created: 2025/02/05 16:44:51 by whaffman #+# #+# */ -/* Updated: 2025/02/12 12:54:04 by whaffman ######## odam.nl */ +/* Updated: 2025/02/28 14:46:42 by whaffman ######## odam.nl */ /* */ /* ************************************************************************** */ @@ -24,7 +24,7 @@ void history_load(void) { line = get_next_line(fd); if (!line) - return ; + break ; line[ft_strlen(line) - 1] = '\0'; if (*line) add_history(line); diff --git a/src/utils/init_minishell.c b/src/utils/init_minishell.c index 016be86..24b51e2 100644 --- a/src/utils/init_minishell.c +++ b/src/utils/init_minishell.c @@ -6,7 +6,7 @@ /* By: whaffman +#+ */ /* +#+ */ /* Created: 2025/02/05 16:03:03 by whaffman #+# #+# */ -/* Updated: 2025/02/26 17:39:41 by whaffman ######## odam.nl */ +/* Updated: 2025/02/28 14:25:18 by whaffman ######## odam.nl */ /* */ /* ************************************************************************** */ @@ -19,7 +19,7 @@ t_minishell *init_minishell(void) msh = malloc(sizeof(t_minishell)); if (!msh) { - perror("failed assigning msh memory"); + error_msg("malloc", "init_minishell"); exit(EXIT_FAILURE); } msh->environment = NULL;