mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
module-coreaudio-detect: fix variable assignment in pa__done()
Do not dereference 'u' prior to its assignment.
This commit is contained in:
parent
f7acd4bdab
commit
9a4ae4cbd5
1 changed files with 3 additions and 1 deletions
|
|
@ -232,12 +232,14 @@ fail:
|
|||
|
||||
void pa__done(pa_module *m) {
|
||||
struct userdata *u;
|
||||
struct ca_device *dev = u->devices;
|
||||
struct ca_device *dev;
|
||||
AudioObjectPropertyAddress property_address;
|
||||
|
||||
pa_assert(m);
|
||||
pa_assert_se(u = m->userdata);
|
||||
|
||||
dev = u->devices;
|
||||
|
||||
property_address.mSelector = kAudioHardwarePropertyDevices;
|
||||
property_address.mScope = kAudioObjectPropertyScopeGlobal;
|
||||
property_address.mElement = kAudioObjectPropertyElementMaster;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue