From aae090ab4edb8e5cee695f72b08701daebecdbad Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Fri, 5 Apr 2024 19:29:13 +0300 Subject: [PATCH] list: clean next pointer on append --- src/libs/list.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/list.h b/src/libs/list.h index 55cc8102..918ffdfe 100644 --- a/src/libs/list.h +++ b/src/libs/list.h @@ -46,6 +46,7 @@ x_item->prev = m_last; \ m_last->next = x_item; \ } \ + x_item->next = NULL; \ } #define US_LIST_APPEND_C(x_first, x_item, x_count) { \