Commit e7ee1ec641603cba756fba750c8984acb89f2aec

Thomas de Grivel 2023-10-22T21:52:46

init facts->next_id

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/libc3/facts.c b/libc3/facts.c
index bab141d..32ecf9d 100644
--- a/libc3/facts.c
+++ b/libc3/facts.c
@@ -215,6 +215,7 @@ s_facts * facts_init (s_facts *facts)
   facts->index_osp->compare = compare_fact_osp;
   facts->log = NULL;
   facts_lock_init(facts);
+  facts->next_id = 0;
   return facts;
 }