mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 08:41:58 +00:00
fixing the leak valgrind and conditionnal jump on some functions cause i forget to initialize the var to NULL i just need to remember this
This commit is contained in:
@@ -34,8 +34,7 @@ int get_next_lower(t_stack *first, int old_lower)
|
||||
int next_lower;
|
||||
|
||||
tmp = first;
|
||||
next_lower = 2147483646;
|
||||
|
||||
next_lower = 2147483647;
|
||||
while (tmp->next != first)
|
||||
{
|
||||
if (old_lower < tmp->value && tmp->value <= next_lower)
|
||||
|
||||
Reference in New Issue
Block a user