From f7d85488e20591f5ae76bf10de4bba689c074342 Mon Sep 17 00:00:00 2001 From: Gammasoft Date: Sun, 17 Sep 2023 22:10:19 +0200 Subject: [PATCH] Review code --- src/xtd.core.native.macos/src/xtd/native/macos/unnamed_mutex.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xtd.core.native.macos/src/xtd/native/macos/unnamed_mutex.mm b/src/xtd.core.native.macos/src/xtd/native/macos/unnamed_mutex.mm index e8fa5a2302e4..f762374439f0 100644 --- a/src/xtd.core.native.macos/src/xtd/native/macos/unnamed_mutex.mm +++ b/src/xtd.core.native.macos/src/xtd/native/macos/unnamed_mutex.mm @@ -12,7 +12,7 @@ intmax_t unnamed_mutex::create(bool initially_owned) { auto handle = new pthread_mutex_t; - pthread_mutexattr_t mutex_attribute; + auto mutex_attribute = pthread_mutexattr_t {}; if (pthread_mutexattr_init(&mutex_attribute) != 0 || pthread_mutexattr_settype(&mutex_attribute, PTHREAD_MUTEX_RECURSIVE) != 0 || pthread_mutex_init(handle, &mutex_attribute) != 0) {