mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-28 00:20:47 +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 */
|
||||
if (cfg.print_metaonly) {
|
||||
if (!cfg.play_sdtout)
|
||||
fclose(outfile);
|
||||
if (!cfg.play_sdtout) {
|
||||
if(outfile != NULL) {
|
||||
fclose(outfile);
|
||||
}
|
||||
}
|
||||
close_vgmstream(vgmstream);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user