mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-02-17 19:19:16 +01:00
vgmstream-cli: prevent segfault when printing metadata
This commit is contained in:
parent
eb3f49cb03
commit
b781d01aa1
@ -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…
x
Reference in New Issue
Block a user