mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-30 17:24:31 +01:00
Merge pull request #322 from jprjr/vgmstream-cli-segfault
vgmstream-cli: prevent segfault when printing metadata
This commit is contained in:
commit
d1a16e15b6
@ -433,8 +433,11 @@ int main(int argc, char ** argv) {
|
|||||||
|
|
||||||
/* prints done */
|
/* prints done */
|
||||||
if (cfg.print_metaonly) {
|
if (cfg.print_metaonly) {
|
||||||
if (!cfg.play_sdtout)
|
if (!cfg.play_sdtout) {
|
||||||
fclose(outfile);
|
if(outfile != NULL) {
|
||||||
|
fclose(outfile);
|
||||||
|
}
|
||||||
|
}
|
||||||
close_vgmstream(vgmstream);
|
close_vgmstream(vgmstream);
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user