diff --git a/include/asterisk/linkedlists.h b/include/asterisk/linkedlists.h index 8bff72e3fa..94e57f1e64 100644 --- a/include/asterisk/linkedlists.h +++ b/include/asterisk/linkedlists.h @@ -486,6 +486,7 @@ struct { \ (head)->last = curelm; \ } \ } \ + (elm)->field.next = NULL; \ } while (0) #endif /* _ASTERISK_LINKEDLISTS_H */