From b91ace723d4fbdb28bf698bde1393257e8dfdf49 Mon Sep 17 00:00:00 2001 From: Kishi <41839133+Kishi85@users.noreply.github.com> Date: Mon, 25 May 2026 16:53:29 +0200 Subject: [PATCH] fix: explicitly check construct function error in thread_safe.h (#5184) --- src/thread_safe.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thread_safe.h b/src/thread_safe.h index 1ef8f336b..4f2448f1b 100644 --- a/src/thread_safe.h +++ b/src/thread_safe.h @@ -438,7 +438,7 @@ namespace safe { if (!_count) { new (_object_buf.data()) element_type; - if (_construct(*reinterpret_cast(_object_buf.data()))) { + if (_construct(*reinterpret_cast(_object_buf.data())) != 0) { return ptr_t {nullptr}; } }