diff options
Diffstat (limited to 'include/asterisk')
-rwxr-xr-x | include/asterisk/linkedlists.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asterisk/linkedlists.h b/include/asterisk/linkedlists.h index fd2203cd7..cfe846225 100755 --- a/include/asterisk/linkedlists.h +++ b/include/asterisk/linkedlists.h @@ -138,7 +138,7 @@ struct name { \ */ #define AST_LIST_HEAD_SET(head, entry) do { \ (head)->first = (entry); \ - (head)->last = NULL; \ + (head)->last = (entry); \ ast_mutex_init(&(head)->lock); \ } while (0) @@ -152,7 +152,7 @@ struct name { \ */ #define AST_LIST_HEAD_SET_NOLOCK(head, entry) do { \ (head)->first = (entry); \ - (head)->last = NULL; \ + (head)->last = (entry); \ } while (0) /*! |