Message ID | 20170804221742.66665-3-luc.vanoostenryck@gmail.com (mailing list archive) |
---|---|
State | Mainlined, archived |
Headers | show |
diff --git a/ptrlist.c b/ptrlist.c index 5dc1117c5..8402f8d2b 100644 --- a/ptrlist.c +++ b/ptrlist.c @@ -23,7 +23,7 @@ int ptr_list_size(struct ptr_list *head) if (head) { struct ptr_list *list = head; do { - nr += list->nr; + nr += list->nr - list->rm; } while ((list = list->next) != head); } return nr;
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> --- ptrlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)