Commit cc0ab1e1cd26a0848af75712b14daa9974311fb4

Thomas de Grivel 2023-07-10T15:54:52

wip

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/libc3/facts.c b/libc3/facts.c
index fee9bff..fb9aa80 100644
--- a/libc3/facts.c
+++ b/libc3/facts.c
@@ -374,7 +374,7 @@ void facts_lock_unlock_w (s_facts *facts)
   assert(facts);
   facts->rwlock_count--;
   if (! facts->rwlock_count) {
-    facts->rwlock_thread = NULL;
+    facts->rwlock_thread = 0;
     if (pthread_rwlock_unlock(&facts->rwlock))
       err(1, "facts_lock_unlock_w: pthread_rwlock_unlock");
   }