Testbench: Propagate fail from topology parse load widget

This patch avoids the testbench to crash when file read or write
file open was not successful. E.g. invoking testbench with
incorrect input file name caused a segfault.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2020-01-31 17:06:21 +02:00 committed by Liam Girdwood
parent 24bbea3ef2
commit 5dcace1211
1 changed files with 1 additions and 1 deletions

View File

@ -555,5 +555,5 @@ finish:
free(temp_comp_list); free(temp_comp_list);
fclose(file); fclose(file);
return 0; return ret;
} }