From 09d5025fc34644a6e04380a61da15ba5d8e3f775 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Tue, 25 Jan 2022 22:23:44 -0700 Subject: Clear out Mutex memory --- src/util/mutex.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/util') diff --git a/src/util/mutex.c b/src/util/mutex.c index 0e1c816..52173af 100644 --- a/src/util/mutex.c +++ b/src/util/mutex.c @@ -47,5 +47,6 @@ struct Mutex* create_mutex(void* addr) // Ensure aligned to word - Important for Atomic Swap struct Mutex* m = (struct Mutex*)malloca(sizeof(struct Mutex), 4); m->addr = addr; + m->pid = 0; return m; } -- cgit v1.2.1