alsa: Check pa_modargs_get_value_boolean() retval for use_ucm

CID 1137983
This commit is contained in:
Peter Meerwald-Stadler 2016-08-15 23:11:50 +02:00
parent 0a5cff6241
commit 61344493bf

View file

@ -741,7 +741,10 @@ int pa__init(pa_module *m) {
} }
} }
pa_modargs_get_value_boolean(u->modargs, "use_ucm", &u->use_ucm); if (pa_modargs_get_value_boolean(u->modargs, "use_ucm", &u->use_ucm) < 0) {
pa_log("Failed to parse use_ucm argument.");
goto fail;
}
/* Force ALSA to reread its configuration. This matters if our device /* Force ALSA to reread its configuration. This matters if our device
* was hot-plugged after ALSA has already read its configuration - see * was hot-plugged after ALSA has already read its configuration - see