From: Takashi Iwai Date: Mon, 8 Jan 2007 15:29:16 +0000 (+0100) Subject: Fix error code in timer_query.c X-Git-Tag: v1.0.14rc2~2 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=6972e3e585be2a2837c7f3e2cab734f4e4bfe954;p=alsa-lib.git Fix error code in timer_query.c Fix the returned error code for the invalid timer definition. --- diff --git a/src/timer/timer_query.c b/src/timer/timer_query.c index 6bbe8bf2..d62ee570 100644 --- a/src/timer/timer_query.c +++ b/src/timer/timer_query.c @@ -77,6 +77,7 @@ static int snd_timer_query_open_conf(snd_timer_query_t **timer, if (err >= 0) { if (snd_config_get_type(type_conf) != SND_CONFIG_TYPE_COMPOUND) { SNDERR("Invalid type for TIMER type %s definition", str); + err = -EINVAL; goto _err; } snd_config_for_each(i, next, type_conf) {