Commit e87a531a7ff2cc0bb8b55ed4d7b92b30ad551e3d

Thomas de Grivel 2023-07-16T11:30:30

facts

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libc3/facts.c b/libc3/facts.c
index ece4824..529e9d9 100644
--- a/libc3/facts.c
+++ b/libc3/facts.c
@@ -393,7 +393,7 @@ void facts_lock_w (s_facts *facts)
     if (pthread_rwlock_wrlock(&facts->rwlock))
       errx(1, "facts_lock_w: pthread_rwlock_wrlock");
     facts->rwlock_thread = thread;
-    facts->rwlock_count = 1;
+    facts->rwlock_count = 0;
   }
   facts->rwlock_count++;
 }