avoid some implicit memsets

This commit is contained in:
twinaphex 2017-01-08 19:35:24 +01:00
parent 9e309032d4
commit 9b6b055047
2 changed files with 8 additions and 5 deletions

View File

@ -99,10 +99,12 @@ static bool create_filter_graph(rarch_dsp_filter_t *dsp, float sample_rate)
{
struct config_file_userdata userdata;
struct dspfilter_info info;
char key[64] = {0};
char name[64] = {0};
char key[64];
char name[64];
info.input_rate = sample_rate;
key[0] = name[0] = '\0';
info.input_rate = sample_rate;
snprintf(key, sizeof(key), "filter%u", i);

View File

@ -136,11 +136,12 @@ static bool create_softfilter_graph(rarch_softfilter_t *filt,
{
unsigned input_fmts, input_fmt, output_fmts, i = 0;
struct config_file_userdata userdata;
char key[64] = {0};
char name[64] = {0};
char key[64], name[64];
(void)i;
key[0] = name[0] = '\0';
snprintf(key, sizeof(key), "filter");
if (!config_get_array(filt->conf, key, name, sizeof(name)))