From: Cloudwalk Date: Wed, 21 Jul 2021 18:43:15 +0000 (-0400) Subject: com_list: Actually initialize a list to point to itself... X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=6986e09fa77045fa21edaf84f6d849140f927d1b com_list: Actually initialize a list to point to itself... --- diff --git a/com_list.h b/com_list.h index f023da50..074b5504 100644 --- a/com_list.h +++ b/com_list.h @@ -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; } /*