Merge branch 'collectd-4.2'
[collectd.git] / src / utils_llist.c
index f7e03c2..7fae025 100644 (file)
@@ -106,6 +106,10 @@ void llist_prepend (llist_t *l, llentry_t *e)
 {
        e->next = l->head;
        l->head = e;
+
+       if (l->tail == NULL)
+               l->tail = e;
+
        ++(l->size);
 }