Merge pull request #139 from volo-zyko/main

Fix potential issues in closeSymbolOutFile
This commit is contained in:
lwvmobile
2023-06-29 09:45:51 -04:00
committed by GitHub

View File

@@ -575,9 +575,10 @@ void closeSymbolOutFile (dsd_opts * opts, dsd_state * state)
//Do something
if (opts->symbol_out == 1)
{
if (opts->symbol_out_file != NULL)
if (opts->symbol_out_f != NULL)
{
fclose(opts->symbol_out_f);
fclose(opts->symbol_out_f);
opts->symbol_out_f = NULL;
}
opts->symbol_out = 0; //set flag to 1