From cfdea930b2b28562cd6255dbcd3b1750ffa2d71d Mon Sep 17 00:00:00 2001 From: SerkanKutlu <1serkankutlu@gmail.com> Date: Sun, 16 Aug 2020 22:02:15 +0300 Subject: [PATCH] Update Linked_List_Example.c A change for pop() function. --- Linked_List_Example.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }