]> git.sur5r.net Git - bacula/bacula/commitdiff
Modify the alist object to be reused after a destroy()
authorEric Bollengier <eric@baculasystems.com>
Thu, 12 May 2016 13:54:29 +0000 (15:54 +0200)
committerKern Sibbald <kern@sibbald.com>
Tue, 31 May 2016 06:26:49 +0000 (08:26 +0200)
bacula/src/lib/alist.c

index 132d1a0a631d672aa4587c010e8795c8284f4097..ff88cf5866e50f4218d5244fc6e868763108dbb0 100644 (file)
@@ -148,6 +148,9 @@ void alist::destroy()
       free(items);
       items = NULL;
    }
+   num_items = 0;
+   max_items = 0;
+   num_grow = 0;
 }
 
 #ifdef TEST_PROGRAM