mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-13 07:21:31 +00:00
snd_umx.c (get_objtype): make sure that 'sig' array is initialized.
This commit is contained in:
parent
065c158254
commit
d239a8911d
1 changed files with 1 additions and 0 deletions
|
@ -120,6 +120,7 @@ static int get_objtype (fshandle_t *f, int32_t ofs, int type)
|
||||||
{
|
{
|
||||||
char sig[16];
|
char sig[16];
|
||||||
_retry:
|
_retry:
|
||||||
|
memset(sig, 0, sizeof(sig));
|
||||||
FS_fseek(f, ofs, SEEK_SET);
|
FS_fseek(f, ofs, SEEK_SET);
|
||||||
FS_fread(sig, 16, 1, f);
|
FS_fread(sig, 16, 1, f);
|
||||||
if (type == UMUSIC_IT) {
|
if (type == UMUSIC_IT) {
|
||||||
|
|
Loading…
Reference in a new issue