From 99dbcb9f655dbc687c001bb3feedadf1d2492c4f Mon Sep 17 00:00:00 2001 From: toaster Date: Sun, 4 Aug 2019 11:28:04 +0100 Subject: [PATCH] Revert "Fix MIDI Soundfont code shadowing a global variable." This reverts commit 3591e3d092c5df3c10248b621bb1613686fc2673. --- src/sdl/mixer_sound.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sdl/mixer_sound.c b/src/sdl/mixer_sound.c index 64b7cc722..ff2b029a5 100644 --- a/src/sdl/mixer_sound.c +++ b/src/sdl/mixer_sound.c @@ -158,14 +158,14 @@ static void MidiSoundfontPath_Onchange(void) if (stricmp(Mix_GetSoundFonts(), cv_midisoundfontpath.string)) { - char *miditoken; + char *token; char *source = strdup(cv_midisoundfontpath.string); boolean proceed = true; // check if file exists; menu calls this method at every keystroke - while ((miditoken = strtok_r(source, ";", &source))) + while ((token = strtok_r(source, ";", &source))) { - SDL_RWops *rw = SDL_RWFromFile(miditoken, "r"); + SDL_RWops *rw = SDL_RWFromFile(token, "r"); if (rw != NULL) SDL_RWclose(rw); else