From d63c6b970629bb10a2f69b69add362733e643654 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 8 Nov 2021 20:08:32 +0100 Subject: [PATCH] main_thread_id initial value should be 0, not NULL --- libretro-common/queues/task_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro-common/queues/task_queue.c b/libretro-common/queues/task_queue.c index 6441b54efd..9bf680c7c2 100644 --- a/libretro-common/queues/task_queue.c +++ b/libretro-common/queues/task_queue.c @@ -66,7 +66,7 @@ static struct retro_task_impl *impl_current = NULL; static bool task_threaded_enable = false; #ifdef HAVE_THREADS -static uintptr_t main_thread_id = NULL; +static uintptr_t main_thread_id = 0; static slock_t *running_lock = NULL; static slock_t *finished_lock = NULL; static slock_t *property_lock = NULL;