final finish on the parsing protecting the malloc

This commit is contained in:
Maoake Teriierooiterai
2026-01-09 07:21:50 +01:00
parent 0df082065e
commit 32a0668b62
3 changed files with 31 additions and 11 deletions

View File

@@ -24,7 +24,11 @@ int test1(int argc, char **argv)
piles = NULL;
mod = calcul_mod(argc, argv);
if (mod == -1)
return (0);
piles = init_piles(argc, argv, mod);
if (!piles)
return (0);
if (check_order(piles->a))
return (0);
flags(pos_flag(argv, mod), pos_bench(argv, mod), argv, piles);