added NULL check to all remove_node functions
This commit is contained in:
parent
f31216f387
commit
3b85c5fc5a
@ -58,6 +58,8 @@ void push_to_list(int connection)
|
|||||||
|
|
||||||
void remove_node(node_t *node)
|
void remove_node(node_t *node)
|
||||||
{
|
{
|
||||||
|
if (node == NULL) return; //NULL NODE
|
||||||
|
|
||||||
node_t *buffer_1 = head;
|
node_t *buffer_1 = head;
|
||||||
node_t *buffer_2;
|
node_t *buffer_2;
|
||||||
|
|
||||||
|
@ -55,6 +55,8 @@ void push_to_list(void *pointer, enum POINTER_TYPES type)
|
|||||||
|
|
||||||
void remove_node(node_t *node)
|
void remove_node(node_t *node)
|
||||||
{
|
{
|
||||||
|
if (node == NULL) return; //NULL NODE
|
||||||
|
|
||||||
node_t *buffer_1 = head;
|
node_t *buffer_1 = head;
|
||||||
node_t *buffer_2;
|
node_t *buffer_2;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user