]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Fix error code in timer_query.c
authorTakashi Iwai <tiwai@suse.de>
Mon, 8 Jan 2007 15:29:16 +0000 (16:29 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 8 Jan 2007 15:29:16 +0000 (16:29 +0100)
Fix the returned error code for the invalid timer definition.

src/timer/timer_query.c

index 6bbe8bf2d652a845a88b1abc443184cad31c7994..d62ee570820430be3982c448653f4882f4d107c2 100644 (file)
@@ -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) {