SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized

This commit is contained in:
ds-sloth 2023-10-24 19:09:53 -04:00 committed by Sam Lantinga
parent 070f57820f
commit 6623c87d0b

View file

@ -246,7 +246,7 @@ static void N3DSAUDIO_CloseDevice(_THIS)
static void N3DSAUDIO_ThreadInit(_THIS) static void N3DSAUDIO_ThreadInit(_THIS)
{ {
s32 current_priority; s32 current_priority = 0x30;
svcGetThreadPriority(&current_priority, CUR_THREAD_HANDLE); svcGetThreadPriority(&current_priority, CUR_THREAD_HANDLE);
current_priority--; current_priority--;
/* 0x18 is reserved for video, 0x30 is the default for main thread */ /* 0x18 is reserved for video, 0x30 is the default for main thread */