From: Jaroslav Kysela Date: Tue, 29 Dec 2020 10:15:46 +0000 (+0100) Subject: conf: fix return code in _snd_config_load_with_include X-Git-Tag: v1.2.5~138 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=6c24cd2e60cc9c1fca809ffeeb7ffe8af94b201e;p=alsa-lib.git conf: fix return code in _snd_config_load_with_include Fixes: 5275d170e0 ("conf: fix use after free in _snd_config_load_with_include") BugLink: https://github.com/alsa-project/alsa-lib/issues/108 Signed-off-by: Jaroslav Kysela --- diff --git a/src/conf.c b/src/conf.c index 6cfe65bf..3c943db2 100644 --- a/src/conf.c +++ b/src/conf.c @@ -1977,6 +1977,7 @@ int _snd_config_load_with_include(snd_config_t *config, snd_input_t *in, err = -EINVAL; goto _end; } + err = 0; _end: while (fd->next) { fd_next = fd->next;