Skip to content

Commit

Permalink
removed bad PANIC return
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHThomas committed Jul 30, 2024
1 parent dc035b4 commit c961de8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
/* ::: :::::::: */
/* init.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jteissie <jteissie@student.42.fr> +#+ +:+ +#+ */
/* By: bthomas <bthomas@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/14 16:48:40 by bthomas #+# #+# */
/* Updated: 2024/07/28 17:11:22 by jteissie ### ########.fr */
/* Updated: 2024/07/30 12:55:52 by bthomas ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -87,15 +87,15 @@ int init(t_data *data, char **env)
data->errcode = EXIT_SUCCESS;
data->parsedata = ft_calloc(1, sizeof(t_parser));
if (!data->parsedata)
return (PANIC);
return (1);
data->parsedata->table = NULL;
data->parsedata->next = NULL;
data->heredata = NULL;
data->piddata = NULL;
data->prev_fd = STDIN_FILENO;
g_sig_offset = 0;
if (init_env(data, env))
return (PANIC);
return (1);
add_dummies(data);
return (0);
}

0 comments on commit c961de8

Please sign in to comment.