From: Jaroslav Kysela Date: Thu, 15 Apr 2021 09:49:32 +0000 (+0200) Subject: ucm: fix uc_mgr_has_local_config() X-Git-Tag: v1.2.5~44 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=1237905559f05d2f9dbc53c4da5ea0f1754c8db3;p=alsa-lib.git ucm: fix uc_mgr_has_local_config() Signed-off-by: Jaroslav Kysela --- diff --git a/src/ucm/ucm_local.h b/src/ucm/ucm_local.h index 0c3f21e6..79f1e87e 100644 --- a/src/ucm/ucm_local.h +++ b/src/ucm/ucm_local.h @@ -301,7 +301,8 @@ void uc_mgr_free(snd_use_case_mgr_t *uc_mgr); static inline int uc_mgr_has_local_config(snd_use_case_mgr_t *uc_mgr) { - return uc_mgr && snd_config_iterator_first(uc_mgr->local_config); + return uc_mgr && snd_config_iterator_first(uc_mgr->local_config) != + snd_config_iterator_end(uc_mgr->local_config); } int uc_mgr_card_open(snd_use_case_mgr_t *uc_mgr);