aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk
diff options
context:
space:
mode:
Diffstat (limited to 'include/asterisk')
-rwxr-xr-xinclude/asterisk/linkedlists.h4
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)
/*!