aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-25 22:23:44 -0700
committerChristian Cunningham <cc@localhost>2022-01-25 22:23:44 -0700
commit09d5025fc34644a6e04380a61da15ba5d8e3f775 (patch)
treeda0022150e59d2b2e3fef482d4cc0a1dca3c66e1 /src/util
parentf149d8e0e3f7785a6b8906d0914c301a5abcb8a3 (diff)
Clear out Mutex memory
Diffstat (limited to 'src/util')
-rw-r--r--src/util/mutex.c1
1 files changed, 1 insertions, 0 deletions
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;
}