mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-07 04:06:06 -05:00
Added missing variable initialization in open_conf() functions (hwdep, timer); Uros
This commit is contained in:
parent
5ba91b544f
commit
f422fb9a78
4 changed files with 7 additions and 15 deletions
|
|
@ -130,11 +130,7 @@ static int snd_timer_open_conf(snd_timer_t **timer,
|
|||
_err:
|
||||
if (type_conf)
|
||||
snd_config_delete(type_conf);
|
||||
if (err >= 0)
|
||||
err = open_func(timer, name, timer_root, timer_conf, mode);
|
||||
if (err < 0)
|
||||
return err;
|
||||
return 0;
|
||||
return err >= 0 ? open_func(timer, name, timer_root, timer_conf, mode) : err;
|
||||
}
|
||||
|
||||
static int snd_timer_open_noupdate(snd_timer_t **timer, snd_config_t *root, const char *name, int mode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue