diff --git a/Linked_List_Example.c b/Linked_List_Example.c index edb9523..f6139d0 100644 --- a/Linked_List_Example.c +++ b/Linked_List_Example.c @@ -80,7 +80,7 @@ int pop(node_t ** head_ref) int retval = -1; node_t * next_node = NULL; - if (*head == NULL) { + if (*head_ref == NULL) { return -1; }