fix: examples

This commit is contained in:
2025-09-05 00:18:08 +02:00
parent 24f6ed0f84
commit 4f71eed36f
11 changed files with 69 additions and 56 deletions

View File

@@ -78,7 +78,7 @@ mcl_string_s *mcl_string_new(const char *text, size_t initial_capacity) {
str->data[str->size] = '\0';
/* Init pthread mutex */
if (mtx_init(&str->lock, NULL) != thrd_success) {
if (mtx_init(&str->lock, mtx_plain) != thrd_success) {
free(str->data);
free(str);