snd_umx.c (get_objtype): make sure that 'sig' array is initialized.

This commit is contained in:
Ozkan Sezer 2022-03-21 20:21:24 +03:00
parent 065c158254
commit d239a8911d

View file

@ -120,6 +120,7 @@ static int get_objtype (fshandle_t *f, int32_t ofs, int type)
{
char sig[16];
_retry:
memset(sig, 0, sizeof(sig));
FS_fseek(f, ofs, SEEK_SET);
FS_fread(sig, 16, 1, f);
if (type == UMUSIC_IT) {