coverity fixes

This commit is contained in:
Jaroslav Kysela 2016-01-12 16:25:42 +01:00
parent 0f4f48d377
commit df20aa2a1e
5 changed files with 8 additions and 3 deletions

View file

@ -559,6 +559,8 @@ int snd_device_name_hint(int card, const char *iface, void ***hints)
if (err < 0)
return err;
err = snd_config_copy(&local_config_rw, local_config);
if (err < 0)
return err;
list.list = NULL;
list.count = list.allocated = 0;
list.siface = iface;