Commit 90e1e39f50f9431e41fc3fb21b8d8f75fd5b4b9c

@udoudou 2022-08-03T22:54:38

* src/cache/ftcmanag.c (FTC_Manager_New): Initialize `cur_weight`. See !192.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/cache/ftcmanag.c b/src/cache/ftcmanag.c
index 6d6b1e0..650b57f 100644
--- a/src/cache/ftcmanag.c
+++ b/src/cache/ftcmanag.c
@@ -383,6 +383,7 @@
     manager->library      = library;
     manager->memory       = memory;
     manager->max_weight   = max_bytes;
+    manager->cur_weight   = 0;
 
     manager->request_face = requester;
     manager->request_data = req_data;