mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
hal-detect: make sure r is initialized, so we don't take random path
This commit is contained in:
parent
7d16dcb6cc
commit
7737b10ac6
1 changed files with 1 additions and 0 deletions
|
|
@ -370,6 +370,7 @@ static struct device* hal_device_add(struct userdata *u, const char *udi) {
|
|||
d->originating_udi = NULL;
|
||||
d->module = PA_INVALID_INDEX;
|
||||
d->sink_name = d->source_name = d->card_name = NULL;
|
||||
r = -1;
|
||||
|
||||
#ifdef HAVE_ALSA
|
||||
if (pa_streq(u->capability, CAPABILITY_ALSA))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue