SDL_mixer: timidity (load_instrument): don't debug-print uninitialized tmp string.

From 4a56a2724c1e8ffe8ea109e795b8e4c937d2d7aa Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 14 Dec 2021 01:51:02 +0300
Subject: [PATCH] timidity (load_instrument): don't debug-print uninitialized
 tmp string.

---
 src/codecs/timidity/instrum.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/codecs/timidity/instrum.c b/src/codecs/timidity/instrum.c
index 8868d463..85b1c2db 100644
--- a/src/codecs/timidity/instrum.c
+++ b/src/codecs/timidity/instrum.c
@@ -160,6 +160,8 @@ static void load_instrument(MidiSong *song, const char *name,
   if (!name) return;
 
   /* Open patch file */
+  i = -1;
+  SDL_strlcpy(tmp, name, sizeof(tmp));
   if ((rw=timi_openfile(name)) == NULL)
     {
       /* Try with various extensions */
@@ -177,7 +179,7 @@ static void load_instrument(MidiSong *song, const char *name,
       return;
     }
 
-  SNDDBG(("Loading instrument %s\n", tmp));
+  SNDDBG(("Loading instrument %s\n", (i < 0)? name : tmp));
 
   /* Read some headers and do cursory sanity checks. There are loads
      of magic offsets. This could be rewritten... */