aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-05-25 13:05:32 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-05-25 13:05:32 +0000
commitbf3df3ff6c6f83be706524fb362608e969e5e61b (patch)
tree6fc022babb8952f2751797ea2cd4e9f85cbb65e8
parent5124b3563b32dc81e92107434b8c22596ef3274c (diff)
downloadradius-bf3df3ff6c6f83be706524fb362608e969e5e61b.tar.gz
radius-bf3df3ff6c6f83be706524fb362608e969e5e61b.tar.bz2
(grad_list_insert_sorted): Update list->count.
-rw-r--r--lib/list.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/list.c b/lib/list.c
index 90a46435..79c1d786 100644
--- a/lib/list.c
+++ b/lib/list.c
@@ -313,6 +313,7 @@ grad_list_insert_sorted(struct list *list, void *data, list_comp_t cmp)
struct list_entry *ep = grad_emalloc(sizeof(*ep));
ep->data = data;
ep->next = cur;
+ list->count++;
prev->next = ep;
}
return 0;

Return to:

Send suggestions and report system problems to the System administrator.