mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-04-12 10:42:01 +02: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_AudioQuit(); /* shutdown driver if already running. */
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_memset(¤t_audio, '\0', sizeof(current_audio));
|
SDL_zero(current_audio);
|
||||||
SDL_memset(open_devices, '\0', sizeof(open_devices));
|
SDL_zero(open_devices);
|
||||||
|
|
||||||
/* Select the proper audio driver */
|
/* Select the proper audio driver */
|
||||||
if (driver_name == NULL) {
|
if (driver_name == NULL) {
|
||||||
@ -801,7 +801,7 @@ SDL_AudioInit(const char *driver_name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
tried_to_init = 1;
|
tried_to_init = 1;
|
||||||
SDL_memset(¤t_audio, 0, sizeof(current_audio));
|
SDL_zero(current_audio);
|
||||||
current_audio.name = backend->name;
|
current_audio.name = backend->name;
|
||||||
current_audio.desc = backend->desc;
|
current_audio.desc = backend->desc;
|
||||||
initialized = backend->init(¤t_audio.impl);
|
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. */
|
return -1; /* No driver was available, so fail. */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user