fix: parsing check nb philos > 0

This commit is contained in:
Camille Chauvet 2023-04-19 13:51:35 +00:00
parent 622c2bf226
commit f19a96a233

View File

@ -44,5 +44,7 @@ bool parsing(t_data *data, char **args, size_t n)
return (1); return (1);
} }
set_value(data, args, n); set_value(data, args, n);
return (0); if (data->nb_philos > 1)
write(2, "Argument error !\n", 16);
return (data->nb_philos > 1);
} }