com_list: Actually initialize a list to point to itself...
authorCloudwalk <cloudwalk009@gmail.com>
Wed, 21 Jul 2021 18:43:15 +0000 (14:43 -0400)
committerCloudwalk <cloudwalk009@gmail.com>
Wed, 21 Jul 2021 22:19:59 +0000 (18:19 -0400)
com_list.h

index f023da50f0bfa3f95aafeafeb073d489e84cbfd9..074b550414a8a6bca30f28c6fbe85c5d8a66b3ff 100644 (file)
@@ -219,7 +219,7 @@ static inline qbool List_Is_Empty(const llist_t *list)
  */
 static inline void List_Create(llist_t *list)
 {
-       list->next = list->prev = NULL;
+       list->next = list->prev = list;
 }
 
 /*