added NULL check to all remove_node functions

This commit is contained in:
Václav Šmejkal 2023-02-21 12:39:54 +01:00
parent f31216f387
commit 3b85c5fc5a
Signed by: ENGO150
GPG Key ID: F6D6DF86242C5A59
2 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,8 @@ void push_to_list(int connection)
void remove_node(node_t *node)
{
if (node == NULL) return; //NULL NODE
node_t *buffer_1 = head;
node_t *buffer_2;

View File

@ -55,6 +55,8 @@ void push_to_list(void *pointer, enum POINTER_TYPES type)
void remove_node(node_t *node)
{
if (node == NULL) return; //NULL NODE
node_t *buffer_1 = head;
node_t *buffer_2;