mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 08:41:58 +00:00
final finish on the parsing protecting the malloc
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user