diff --git a/include/asterisk/linkedlists.h b/include/asterisk/linkedlists.h index 17d92c57ab..610f8085b7 100644 --- a/include/asterisk/linkedlists.h +++ b/include/asterisk/linkedlists.h @@ -303,6 +303,7 @@ struct { \ __list_next = (var) ? (var)->field.next : NULL; \ (var); \ __list_prev = __new_prev, (var) = __list_next, \ + __new_prev = (var), \ __list_next = (var) ? (var)->field.next : NULL \ )