added initializing pointer
authorHolger Schemel <info@artsoft.org>
Wed, 8 Mar 2023 20:12:58 +0000 (21:12 +0100)
committerHolger Schemel <info@artsoft.org>
Wed, 8 Mar 2023 20:12:58 +0000 (21:12 +0100)
src/files.c

index 7d0f6f0aff81becd92c1496e02263d5bf9fe1ace..5d191f027233d559a855fb16b5d50b00a2d19e25 100644 (file)
@@ -12952,7 +12952,7 @@ void LoadMusicInfo(void)
   int num_music = getMusicListSize();
   int num_music_noconf = 0;
   int num_sounds = getSoundListSize();
-  Directory *dir;
+  Directory *dir = NULL;
   DirectoryEntry *dir_entry;
   struct FileInfo *music, *sound;
   struct MusicFileInfo *next, **new;