From 9b2e1568696ee8f4a692cd8cfcbd082083d62da2 Mon Sep 17 00:00:00 2001 From: Martin Eyben Date: Fri, 28 Mar 2025 14:42:15 +0100 Subject: [PATCH] fix[mutex]: valgrind uninitialised values --- src/thread/thread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/thread/thread.c b/src/thread/thread.c index 56871a0..0163107 100644 --- a/src/thread/thread.c +++ b/src/thread/thread.c @@ -319,6 +319,7 @@ void __attribute__((constructor)) setup_main_thread() main->status = 0; main->retvalue = NULL; main->last_waited = NULL; + main->mutex_fifo_entry = NULL; running = main; // Create a context with static stack to clean everything at the end.