mirror of
https://github.com/lwvmobile/dsd-fme.git
synced 2026-11-16 18:57:24 -05:00
Merge pull request #139 from volo-zyko/main
Fix potential issues in closeSymbolOutFile
This commit is contained in:
@@ -575,9 +575,10 @@ void closeSymbolOutFile (dsd_opts * opts, dsd_state * state)
|
|||||||
//Do something
|
//Do something
|
||||||
if (opts->symbol_out == 1)
|
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
|
opts->symbol_out = 0; //set flag to 1
|
||||||
|
|||||||
Reference in New Issue
Block a user