From fb4f2fb66e8bc67bd4e07202d9517a92e7e830b9 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 12 May 2016 15:54:29 +0200 Subject: [PATCH] Modify the alist object to be reused after a destroy() --- bacula/src/lib/alist.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bacula/src/lib/alist.c b/bacula/src/lib/alist.c index 132d1a0a63..ff88cf5866 100644 --- a/bacula/src/lib/alist.c +++ b/bacula/src/lib/alist.c @@ -148,6 +148,9 @@ void alist::destroy() free(items); items = NULL; } + num_items = 0; + max_items = 0; + num_grow = 0; } #ifdef TEST_PROGRAM -- 2.39.5