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:
Maoake
2025-12-23 09:21:17 +00:00
parent 96a0a6d8f0
commit 85b83f3cc7
9 changed files with 32 additions and 41 deletions

View File

@@ -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)