projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'collectd-4.2'
[collectd.git]
/
src
/
utils_llist.c
diff --git
a/src/utils_llist.c
b/src/utils_llist.c
index
f7e03c2
..
7fae025
100644
(file)
--- a/
src/utils_llist.c
+++ b/
src/utils_llist.c
@@
-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);
}