From 575decc35bd52904d9a8bd5d482b759639abde96 Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Thu, 28 Oct 2021 02:14:29 -0700 Subject: [PATCH] also not a thread id: nullptr --- src/iothread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iothread.cpp b/src/iothread.cpp index 529a8878c..9c5d10bab 100644 --- a/src/iothread.cpp +++ b/src/iothread.cpp @@ -356,7 +356,7 @@ bool make_detached_pthread(void *(*func)(void *), void *param) { // Spawn a thread. If this fails, it means there's already a bunch of threads; it is very // unlikely that they are all on the verge of exiting, so one is likely to be ready to handle // extant requests. So we can ignore failure with some confidence. - pthread_t thread = nullptr; + pthread_t thread = 0; int err = pthread_create(&thread, nullptr, func, param); if (err == 0) { // Success, return the thread.