diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/linkedlists.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/linkedlists.h b/include/asterisk/linkedlists.h index f687189e2..8dbd5dd5c 100644 --- a/include/asterisk/linkedlists.h +++ b/include/asterisk/linkedlists.h @@ -424,7 +424,7 @@ struct { \ #define AST_LIST_REMOVE(head, elm, field) do { \ if ((head)->first == (elm)) { \ (head)->first = (elm)->field.next; \ - if ((head)->last = (elm)) \ + if ((head)->last == (elm)) \ (head)->last = NULL; \ } else { \ typeof(elm) curelm = (head)->first; \ |