diff options
Diffstat (limited to 'src/nxt_list.c')
-rw-r--r-- | src/nxt_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_list.c b/src/nxt_list.c index 9a44ce9a..cab925cb 100644 --- a/src/nxt_list.c +++ b/src/nxt_list.c @@ -53,7 +53,7 @@ nxt_list_add(nxt_list_t *list) list->last = last; } - elt = nxt_list_data(last) + last->nelts * list->size; + elt = nxt_pointer_to(nxt_list_data(last), last->nelts * list->size); last->nelts++; return elt; |