From 1b4444ce9ef5a1a41050c0b3e2dd1b5d4deb72f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Mon, 21 Sep 2020 17:15:27 +0200 Subject: [PATCH] dde_bsd: use right member for iterating mixer set Due to what seems like a copy-and-paste error, the wrong union member was used to compare the label. Fortunately, as both structs have the same memory layout that did not result in any issue. Issue #3929. --- repos/dde_bsd/src/lib/audio/driver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/dde_bsd/src/lib/audio/driver.cc b/repos/dde_bsd/src/lib/audio/driver.cc index 4e70006095..d323867e0d 100644 --- a/repos/dde_bsd/src/lib/audio/driver.cc +++ b/repos/dde_bsd/src/lib/audio/driver.cc @@ -178,7 +178,7 @@ static bool set_mixer_value(Mixer &mixer, char const * const field, case AUDIO_MIXER_SET: { for (int i = 0; i < info.un.s.num_mem; i++) { - if (Genode::strcmp(value, info.un.e.member[i].label.name) == 0) { + if (Genode::strcmp(value, info.un.s.member[i].label.name) == 0) { oldv= ctrl.un.mask; newv |= info.un.s.member[i].mask;