mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-11 08:25:26 +00:00
Changed some SDL_memset() calls to SDL_zero().
This commit is contained in:
parent
97ff10c63c
commit
338bf5d297
|
@ -784,8 +784,8 @@ SDL_AudioInit(const char *driver_name)
|
|||
SDL_AudioQuit(); /* shutdown driver if already running. */
|
||||
}
|
||||
|
||||
SDL_memset(¤t_audio, '\0', sizeof(current_audio));
|
||||
SDL_memset(open_devices, '\0', sizeof(open_devices));
|
||||
SDL_zero(current_audio);
|
||||
SDL_zero(open_devices);
|
||||
|
||||
/* Select the proper audio driver */
|
||||
if (driver_name == NULL) {
|
||||
|
@ -801,7 +801,7 @@ SDL_AudioInit(const char *driver_name)
|
|||
}
|
||||
|
||||
tried_to_init = 1;
|
||||
SDL_memset(¤t_audio, 0, sizeof(current_audio));
|
||||
SDL_zero(current_audio);
|
||||
current_audio.name = backend->name;
|
||||
current_audio.desc = backend->desc;
|
||||
initialized = backend->init(¤t_audio.impl);
|
||||
|
@ -817,7 +817,7 @@ SDL_AudioInit(const char *driver_name)
|
|||
}
|
||||
}
|
||||
|
||||
SDL_memset(¤t_audio, 0, sizeof(current_audio));
|
||||
SDL_zero(current_audio);
|
||||
return -1; /* No driver was available, so fail. */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue