namehint: add missing list->card initialization

list->card is wrongly assumed to be initialized, but the previous
initialization is within a conditional that is false when only
card-independent devices are found.  (This is the case when searching
for mixers on my system; the end result is that the "pulse" mixer is
listed three times.)

Signed-off-by: John Lindgren <john.lindgren@tds.net>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2009-11-03 16:36:55 +01:00
parent 0bff868580
commit 592bd1e98b

View file

@ -453,6 +453,7 @@ static int add_card(struct hint_list *list, int card)
if (err == -EXDEV) if (err == -EXDEV)
continue; continue;
if (err < 0) { if (err < 0) {
list->card = card;
list->device = -1; list->device = -1;
err = try_config(list, list->siface, str); err = try_config(list, list->siface, str);
} }