mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
Initialise variables
These were detected using clang static analyzer.
This commit is contained in:
parent
3b76d8065f
commit
92219b01b9
5 changed files with 9 additions and 6 deletions
|
|
@ -192,6 +192,7 @@ int pa__init(pa_module*m) {
|
|||
}
|
||||
|
||||
ss = m->core->default_sample_spec;
|
||||
map = m->core->default_channel_map;
|
||||
if (pa_modargs_get_sample_spec_and_channel_map(ma, &ss, &map, PA_CHANNEL_MAP_DEFAULT) < 0) {
|
||||
pa_log("Invalid sample format specification or channel map");
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue