Skip to content

Commit b03f072

Browse files
Make EMPTY_LINKED_LIST use designated initializer style.
1 parent 841ea54 commit b03f072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linkedlist.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct LinkedList
3636
extern void initializeLinkedList(
3737
struct LinkedList* list);
3838

39-
#define EMPTY_LINKED_LIST {NULL, NULL, 0}
39+
#define EMPTY_LINKED_LIST {.head = NULL, .tail = NULL, .size = 0}
4040

4141
/* Add new LinkedListNode to the tail of the list with specified data */
4242
extern void addToLinkedList(

0 commit comments

Comments
 (0)