Initialise variables

These were detected using clang static analyzer.
This commit is contained in:
Maarten Bosmans 2011-08-13 13:43:20 +02:00 committed by Colin Guthrie
parent 3b76d8065f
commit 92219b01b9
5 changed files with 9 additions and 6 deletions

View file

@ -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;