diff --git a/src/sentry_sync.h b/src/sentry_sync.h index 73531235b..0741c3070 100644 --- a/src/sentry_sync.h +++ b/src/sentry_sync.h @@ -167,10 +167,7 @@ typedef HANDLE sentry_threadid_t; typedef struct sentry__winmutex_s sentry_mutex_t; # define SENTRY__MUTEX_INIT \ { \ - INIT_ONCE_STATIC_INIT, \ - { \ - 0 \ - } \ + INIT_ONCE_STATIC_INIT, { 0 } \ } # define sentry__mutex_init(Lock) sentry__winmutex_init(Lock) # define sentry__mutex_lock(Lock) sentry__winmutex_lock(Lock) diff --git a/tests/unit/test_value.c b/tests/unit/test_value.c index e0a0917db..6a4044c13 100644 --- a/tests/unit/test_value.c +++ b/tests/unit/test_value.c @@ -105,11 +105,13 @@ SENTRY_TEST(value_string) SENTRY_TEST(value_unicode) { // https://xkcd.com/1813/ :-) - sentry_value_t val = sentry_value_new_string("őá…–🤮🚀¿ 한글 테스트 \a\v"); - TEST_CHECK_STRING_EQUAL( - sentry_value_as_string(val), "őá…–🤮🚀¿ 한글 테스트 \a\v"); + sentry_value_t val + = sentry_value_new_string("őá…–🤮🚀¿ 한글 테스트 \a\v"); + TEST_CHECK_STRING_EQUAL(sentry_value_as_string(val), + "őá…–🤮🚀¿ 한글 테스트 \a\v"); // json does not need to escape unicode, except for control characters - TEST_CHECK_JSON_VALUE(val, "\"őá…–🤮🚀¿ 한글 테스트 \\u0007\\u000b\""); + TEST_CHECK_JSON_VALUE( + val, "\"őá…–🤮🚀¿ 한글 테스트 \\u0007\\u000b\""); sentry_value_decref(val); char zalgo[] = "z̴̢̈͜ä̴̺̟́ͅl̸̛̦͎̺͂̃̚͝g̷̦̲͊͋̄̌͝o̸͇̞̪͙̞͌̇̀̓̏͜"; val = sentry_value_new_string(zalgo);