Skip to content

Commit

Permalink
SDL_n3dsaudio.c - don't risk leaving current_priority uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-sloth authored and slouken committed Oct 24, 2023
1 parent 070f578 commit 6623c87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/n3ds/SDL_n3dsaudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ static void N3DSAUDIO_CloseDevice(_THIS)

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

0 comments on commit 6623c87

Please sign in to comment.