ref:b91ace723d4fbdb28bf698bde1393257e8dfdf49

fix: explicitly check construct function error in thread_safe.h (#5184)

SHA: b91ace723d4fbdb28bf698bde1393257e8dfdf49
Author: Kishi <41839133+Kishi85@users.noreply.github.com>
Date: 2026-05-25 14:53
Parents: dbce229
1 files changed +1 -1
Type
src/thread_safe.h +1 −1
@@ -438,7 +438,7 @@
if (!_count) {
new (_object_buf.data()) element_type;
if (_construct(*reinterpret_cast<element_type *>(_object_buf.data()))) {
if (_construct(*reinterpret_cast<element_type *>(_object_buf.data())) != 0) {
return ptr_t {nullptr};
}
}