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
commit 2e898d997b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

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