From: Liam Girdwood Date: Fri, 9 Jun 2017 15:33:42 +0000 (+0100) Subject: topology: delete output file if parsing fails. X-Git-Tag: v1.1.5~9 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=1a0571bd780f90154b43771d6828379252e1d88e;p=alsa-utils.git topology: delete output file if parsing fails. 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 Signed-off-by: Takashi Iwai --- diff --git a/topology/topology.c b/topology/topology.c index 33c3276..ffe2f05 100644 --- a/topology/topology.c +++ b/topology/topology.c @@ -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; }