mirror of
https://github.com/libretro/RetroArch
synced 2025-02-23 15:40:35 +00:00
avoid some implicit memsets
This commit is contained in:
parent
9e309032d4
commit
9b6b055047
@ -99,8 +99,10 @@ static bool create_filter_graph(rarch_dsp_filter_t *dsp, float sample_rate)
|
|||||||
{
|
{
|
||||||
struct config_file_userdata userdata;
|
struct config_file_userdata userdata;
|
||||||
struct dspfilter_info info;
|
struct dspfilter_info info;
|
||||||
char key[64] = {0};
|
char key[64];
|
||||||
char name[64] = {0};
|
char name[64];
|
||||||
|
|
||||||
|
key[0] = name[0] = '\0';
|
||||||
|
|
||||||
info.input_rate = sample_rate;
|
info.input_rate = sample_rate;
|
||||||
|
|
||||||
|
@ -136,11 +136,12 @@ static bool create_softfilter_graph(rarch_softfilter_t *filt,
|
|||||||
{
|
{
|
||||||
unsigned input_fmts, input_fmt, output_fmts, i = 0;
|
unsigned input_fmts, input_fmt, output_fmts, i = 0;
|
||||||
struct config_file_userdata userdata;
|
struct config_file_userdata userdata;
|
||||||
char key[64] = {0};
|
char key[64], name[64];
|
||||||
char name[64] = {0};
|
|
||||||
|
|
||||||
(void)i;
|
(void)i;
|
||||||
|
|
||||||
|
key[0] = name[0] = '\0';
|
||||||
|
|
||||||
snprintf(key, sizeof(key), "filter");
|
snprintf(key, sizeof(key), "filter");
|
||||||
|
|
||||||
if (!config_get_array(filt->conf, key, name, sizeof(name)))
|
if (!config_get_array(filt->conf, key, name, sizeof(name)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user