From: Lukas Jiriste Date: Thu, 30 May 2024 10:55:13 +0000 (+0200) Subject: Fix well fed message not printing by initializing X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=d0d8c7dac63eea2c0f9af8a83133f8802ddc3813;p=42%2Fphilosophers.git Fix well fed message not printing by initializing --- diff --git a/philo_bonus/main.c b/philo_bonus/main.c index ef7cae7..2bf9e65 100644 --- a/philo_bonus/main.c +++ b/philo_bonus/main.c @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/03/22 11:19:48 by ljiriste #+# #+# */ -/* Updated: 2024/05/30 12:46:31 by ljiriste ### ########.fr */ +/* Updated: 2024/05/30 12:54:56 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -87,6 +87,7 @@ void wait_for_end(unsigned int philo_count, t_sems *semaphores) int end; t_check check_input; + end = 0; check_input.end = &end; check_input.philo_count = philo_count; check_input.semaphores = semaphores;