]> git.alsa-project.org Git - alsa-utils.git/commitdiff
topology: delete output file if parsing fails.
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>
Fri, 9 Jun 2017 15:33:42 +0000 (16:33 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sat, 10 Jun 2017 09:34:53 +0000 (11:34 +0200)
Currently the binary output file is left when parsing fails. This confuses
GNU Make if the parsing fails and causes the compilation to partially
complete.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
topology/topology.c

index 33c3276621661536aef128c778af779a695b9ecf..ffe2f0588a8cf9203f0588f06bba1c89e3497dff 100644 (file)
@@ -108,6 +108,7 @@ int main(int argc, char *argv[])
        if (err < 0) {
                fprintf(stderr, _("failed to compile context %s\n"), source_file);
                snd_tplg_free(snd_tplg);
+               unlink(output_file);
                return 1;
        }