Fixed potential segfault

This commit is contained in:
MarcUs7i 2025-06-02 00:49:10 +02:00
parent 754dadd12f
commit 641fc48858

View file

@ -285,10 +285,10 @@ void list_insert(IntList list, int value) {
list->tail->next = newNode;
newNode->prev = list->tail;
}
}
list->tail = newNode;
list->size++;
list->tail = newNode;
list->size++;
}
}
/**