added some useless NULL check

This commit is contained in:
Václav Šmejkal 2023-02-06 16:52:08 +01:00
parent 4a1d77175e
commit 7d79ee29eb
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -90,6 +90,8 @@ void remove_node(node_t *node)
node_t *get_node(void *pointer) node_t *get_node(void *pointer)
{ {
if (head == NULL) return NULL; //EMPTY LIST
node_t *buffer = head; node_t *buffer = head;
while (buffer -> next != NULL) while (buffer -> next != NULL)
{ {